starcode100
ATApache TinkerPop
•Created by starcode100 on 12/1/2023 in #questions
Error: `Failed to authenticate`, when connection pool size is >1 for GremlinServer with ArcadeDB
Hi @spmallette , do we have a workaround on the above issue? because I get the same issue with other tinkerpop enabled DB's as well. So It seems to be tied with Gremlin.
I could see a similar issue thread: https://issues.apache.org/jira/browse/TINKERPOP-2132, https://issues.apache.org/jira/browse/TINKERPOP-2205
6 replies
ATApache TinkerPop
•Created by starcode100 on 12/1/2023 in #questions
Error: `Failed to authenticate`, when connection pool size is >1 for GremlinServer with ArcadeDB
Adding more details of the issue:
Cluster settings for connection pool = (min 2 , max 8))
In high load. E.g.: 1000 request/sec below log is written:
INFO 116840 --- [gremlin-driver-conn-scheduler-1] o.a.tinkerpop.gremlin.driver.Connection : Created new connection for ws://ec2-**.ap-southeast-2.compute.amazonaws.com:8182/gremlin
INFO 116840 --- [gremlin-driver-conn-scheduler-2] o.a.tinkerpop.gremlin.driver.Connection : Created new connection for ws://ec2-**.ap-southeast-2.compute.amazonaws.com:8182/gremlin
INFO 116840 --- [gremlin-driver-host-scheduler-1] o.a.t.gremlin.driver.ConnectionPool : Opening connection pool on Host{address=ec2-**.ap-southeast-2.compute.amazonaws.com/**:8182, hostUri=ws://ec2-**.ap-southeast-2.compute.amazonaws.com:8182/gremlin} with core size of 2
INFO 33720 --- [gremlin-driver-worker-19] o.a.t.gremlin.driver.ConnectionPool : Replace Connection{host=Host{address=ec2-**.ap-southeast-2.compute.amazonaws.com/**:8182, hostUri=ws://ec2-**.ap-southeast-2.compute.amazonaws.com:8182/gremlin}}, {channel=254bbe33}
Following up after this, will get the error:
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Failed to authenticate
at org.apache.tinkerpop.gremlin.driver.Handler$GremlinResponseHandler.channelRead0(Handler.java:246) ~[gremlin-driver-3.7.0.jar:3.7.0]
at org.apache.tinkerpop.gremlin.driver.Handler$GremlinResponseHandler.channelRead0(Handler.java:201) ~[gremlin-driver-3.7.0.jar:3.7.0]
Upon checking the error in gremlin source code, I could see that its originating from gremlin server class: SaslAuthenticationHandler when the below condition is false:
if (requestMessage.getOp().equals(Tokens.OPS_AUTHENTICATION) && requestMessage.getArgs().containsKey(Tokens.ARGS_SASL))
Note:- Is there a configuration tuning towards Cluster recommended(rule of thump) for high concurrent loads if that has affect on the above issue?
6 replies