Skip to content

Conversation

@tolbertam
Copy link
Contributor

The logic from JAVA-1388 dictates that the driver downgrades from
system.peers_v2 to system.peers for node discovery if an
INVALID_QUERY error is received. We should also consider SERVER_ERROR
as some versions inappropriately respond with errors of that type.

The logic from JAVA-1388 dictates that the driver downgrades from
system.peers_v2 to system.peers for node discovery if an
INVALID_QUERY error is received.  We should also consider SERVER_ERROR
as some versions inappropriately respond with errors of that type.
if (t instanceof InvalidQueryException) {
// downgrade to system.peers if we get an invalid query or server error as this
// indicates the peers_v2 table does not exist.
if (t instanceof InvalidQueryException || t instanceof ServerError) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Didn't we decide to also match the error message in the case of ServerError?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

My mistake, that's right. I'll add that.

@tolbertam tolbertam added this to the 3.6.0 milestone Aug 20, 2018
Copy link
Contributor

@olim7t olim7t left a comment

Choose a reason for hiding this comment

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

LGTM, I think we should also mention in the comment that this is because DSE 6.0.0 to 6.0.2 does that.

@tolbertam
Copy link
Contributor Author

Sounds good, will amend the comment and also include it in the commit message, thanks for reviewing!

@tolbertam tolbertam merged commit ce64618 into 3.x Aug 20, 2018
@tolbertam tolbertam deleted the java1388-2 branch August 20, 2018 23:03
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.

2 participants