spmallette opened a new pull request, #3139:
URL: https://github.com/apache/tinkerpop/pull/3139

   https://issues.apache.org/jira/browse/TINKERPOP-3167
   
   There is a chance that the Client.hostConnectionPools can land in a state 
where it has zero hosts present which leads to the returned ConnectionPool 
itself to be null. Borrowing a Connection then leads to a NullPointerException.
   
   By preferring a check during init of actual connection pool creation the 
Client avoids a state where it could grab a null pool. This change doesn't 
address some of the synchronization issues that likely contributed to allowing 
the NPE in the first place, but there doesn't seem to be evidence that having 
an inconsistent state here can lead to issues outside of init().
   
   VOTE +1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to