Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Conversation

@henriknyman
Copy link
Collaborator

We should be able to connect to another database or system database
even when the default database is stopped.

So we no longer use the Java driver verifyConnectivity() method
since that is hard-wired to check connectivity toward the default
database only.

Also adapt to that the DatabaseUnavailable error message could be
masked by the driver. Treat any ServiceUnavailable the same in
interactive mode.

@henriknyman henriknyman force-pushed the 4.0-fix-connection-when-no-default-database branch from 2bbc861 to b3e0447 Compare November 29, 2019 16:49
boltStateHandler.disconnect();
}

private String getErrorCode(Neo4jException e) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels a little brittle but I don't have a better idea.

We should be able to connect to another database or system database
even when the default database is stopped.

So we no longer use the Java driver verifyConnectivity() method
since that is hard-wired to check connectivity toward the default
database only.

Also adapt to that the DatabaseUnavailable error message could be
masked by the driver. Treat any ServiceUnavailable the same in
interactive mode.
It will become possible to get the cause of
ServiceUnavailableExceptions.
@henriknyman henriknyman force-pushed the 4.0-fix-connection-when-no-default-database branch from 8b1b71d to 2732f2f Compare December 5, 2019 11:42
@sherfert sherfert merged commit c72c0cb into neo4j:4.0 Dec 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants