Skip to content

Conversation

@lutovich
Copy link
Contributor

This PR makes direct driver test connectivity on creation. It's done by opening and closing a connection. Previously driver did not try to connect during creation and auth errors (incorrect credentials, etc.) popped up only when first query was executed or first transaction was started. Such delayed errors were confusing. Also routing driver behaved differently because it fetches routing table at creation and auth errors come out of constructor.

This commit makes direct driver test connectivity on creation. It's
done by opening and closing a connection. Previously driver did not
try to connect during creation and auth errors (incorrect credentials,
etc.) popped up only when first query was executed or first
transaction was started. Such delayed errors were confusing. Also routing
driver behaved differently because it fetches routing table at creation
and auth errors come out of constructor.
@lutovich lutovich requested a review from zhenlineo May 18, 2017 10:28
@lutovich
Copy link
Contributor Author

Hi @inserpio, this PR will make driver created with bolt:// uri fail early when credentials are wrong.

@inserpio
Copy link

Hi @lutovich, thank you very much for taking care about that. I will change the JDBC driver accordingly to benefit of that.
Cheers, Lorenzo

@zhenlineo zhenlineo merged commit 24e6af1 into neo4j:1.3 May 18, 2017
@lutovich lutovich deleted the 1.3-direct-driver-auth-errors branch June 13, 2017 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants