-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Tests: Skip Version.CURRENT for static bwc indexes #10293
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we have a comment as to why we do this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should now have a method
public boolean skipVersion(Version) {
return a // foo
|| b // bar
|| c; // baz
}
seems simpler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a function is overkill, having the logic in the loop is nice and direct. I added comments.
|
LGTM. Left one minor comment. |
The current version is normally a snapshot while in development. However, when the release process changes the snapshot flag to false, this causes the static bwc tests to fail because they cannot find an index for the current version. Instead, this change skips the current version, because there is no need to test a verion's bwc against itself. closes elastic#10292 closes elastic#10293
cb94f80 to
96fa466
Compare
The current version is normally a snapshot while in development. However, when the release process changes the snapshot flag to false, this causes the static bwc tests to fail because they cannot find an index for the current version. Instead, this change skips the current version, because there is no need to test a verion's bwc against itself. closes #10292 closes #10293 Conflicts: src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
The current version is normally a snapshot while in development. However, when the release process changes the snapshot flag to false, this causes the static bwc tests to fail because they cannot find an index for the current version. Instead, this change skips the current version, because there is no need to test a verion's bwc against itself. closes #10292 closes #10293 Conflicts: src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
The current version is normally a snapshot while in development. However, when the release process changes the snapshot flag to false, this causes the static bwc tests to fail because they cannot find an index for the current version. Instead, this change skips the current version, because there is no need to test a verion's bwc against itself. closes elastic#10292 closes elastic#10293 Conflicts: src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java
The current version is normally a snapshot while in development.
However, when the release process changes the snapshot flag to false,
this causes the static bwc tests to fail because they cannot
find an index for the current version. Instead, this change
skips the current version, because there is no need to test
a verion's bwc against itself.
closes #10292