Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test for JDBC version check #42139

Merged
merged 1 commit into from
May 14, 2019
Merged

Conversation

tvernum
Copy link
Contributor

@tvernum tvernum commented May 14, 2019

The testExceptionThrownOnIncompatibleVersions test simply requires
that the randomly selected version is not equal to the current version.

The previous implementation of this test would sometimes randomly
select CURRENT.

The testExceptionThrownOnIncompatibleVersions test simply requires
that the randomly selected version is not equal to the current version.

The previous implementation of this test would sometimes randomly
select CURRENT.
@tvernum tvernum added >test Issues or PRs that are addressing/adding tests :Analytics/SQL SQL querying v8.0.0 labels May 14, 2019
@tvernum tvernum requested review from rjernst and imotov May 14, 2019 09:16
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

Copy link
Contributor

@imotov imotov left a comment

Choose a reason for hiding this comment

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

I think this is an appropriate fix for this particular failure since we really want to check all previous versions not just compatible previous version. However, it doesn't address the discrepancy between behavior and comment for the randomPreviousCompatibleVersion() which says that it "returns a random version index compatible with the given version, but not the given version", when if fact it can return the given version sometimes.

@tvernum tvernum merged commit 750eb6e into elastic:master May 14, 2019
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
The testExceptionThrownOnIncompatibleVersions test simply requires
that the randomly selected version is not equal to the current version.

The previous implementation of this test would sometimes randomly
select CURRENT.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/SQL SQL querying >test Issues or PRs that are addressing/adding tests v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants