[ 
https://issues.apache.org/jira/browse/TINKERPOP-2205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16942725#comment-16942725
 ] 

Stephen Mallette commented on TINKERPOP-2205:
---------------------------------------------

Picked up this failure on Travis:

{code}
[ERROR] Tests run: 59, Failures: 0, Errors: 1, Skipped: 6, Time elapsed: 
451.356 s <<< FAILURE! - in 
org.apache.tinkerpop.gremlin.server.GremlinDriverIntegrateTest
[ERROR] 
shouldExecuteScriptsInMultipleSession(org.apache.tinkerpop.gremlin.server.GremlinDriverIntegrateTest)
  Time elapsed: 9.393 s  <<< ERROR!
java.lang.RuntimeException: java.util.concurrent.ExecutionException: 
java.lang.RuntimeException: 
org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: Timed out 
while performing websocket handshake - ensure that client protocol matches 
server
        at 
org.apache.tinkerpop.gremlin.server.GremlinDriverIntegrateTest.shouldExecuteScriptsInMultipleSession(GremlinDriverIntegrateTest.java:1225)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: 
org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: Timed out 
while performing websocket handshake - ensure that client protocol matches 
server
        at 
org.apache.tinkerpop.gremlin.server.GremlinDriverIntegrateTest.shouldExecuteScriptsInMultipleSession(GremlinDriverIntegrateTest.java:1225)
Caused by: java.lang.RuntimeException: 
org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: Timed out 
while performing websocket handshake - ensure that client protocol matches 
server
Caused by: org.apache.tinkerpop.gremlin.driver.exception.ConnectionException: 
Timed out while performing websocket handshake - ensure that client protocol 
matches server
{code}

Can't say that I see that test as a typically flakey one, so perhaps it's just 
a fluke of Travis. Logging it here in case I see it again.

> Use one connection per request for Java client
> ----------------------------------------------
>
>                 Key: TINKERPOP-2205
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2205
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: driver
>    Affects Versions: 3.3.6
>            Reporter: Divij Vaidya
>            Assignee: Stephen Mallette
>            Priority: Major
>              Labels: deprecation
>
> This issue is a tracking item for the conversation in the mailing list 
> [[1]|https://lists.apache.org/thread.html/77728cb77d4eab90f15680595e653ffc6055b74db29cbd4dcd5f0339@%3Cdev.tinkerpop.apache.org%3E]
>  which highlights multiple problems and shortcomings in the existing Java 
> client and proposes a design change in the client connection pooling to 
> address the same. More specifically, the problems addressed are as follows:
>  # Difficulty in configuring the client for optimum performance.
>  # Undocumented dependency of configuration parameters on each other.
>  # A bad request can impact other requests on the same channel.
>  # Host is marked as dead even if it is busy serving requests.
>  # No way to free up server resources if the client has stopped consuming 
> results.
>  # No differentiation between retriable and non-retriable exceptions from the 
> application code.
>  # Keep alive is only sent when a query is executing, which means that a 
> connection open for a very long time with no query being sent will be closed 
> by the server.
>  # Race condition if the server response reaches before result queue has been 
> registered.
>  # Unpredictable behaviour if the server sends an exception followed by a 
> genuine response for the same request.
>  # A concurrent hash map (tracking pending requests) is a point of contention 
> amongst threads.
> [1]https://lists.apache.org/thread.html/77728cb77d4eab90f15680595e653ffc6055b74db29cbd4dcd5f0339@%3Cdev.tinkerpop.apache.org%3E



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to