-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Rewrite date_nanos rolling upgrade test #70855
Conversation
This change rewrites the rolling upgrade yml test that was added for date_nanos in Java. This is needed to allow extra logic when backporting to 7.x. date_nanos are not available in 6.x so we need to skip the upgraded test based on the version of the old cluster. Relates elastic#70463
Pinging @elastic/es-search (Team:Search) |
ci failed on a known issue |
@elasticmachine run elasticsearch-ci/2 |
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.
LGTM with a small comment.
@@ -171,6 +166,62 @@ public void testAutoIdWithOpTypeCreate() throws IOException { | |||
} | |||
} | |||
|
|||
public void testDateNanosFormatUpgrade() throws IOException { | |||
final String indexName = "test_date_nanos"; | |||
switch (CLUSTER_TYPE) { |
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 we can use UPGRADE_FROM_VERSION
instead of minNodeVersion
as we do not execute anything in a mixed cluster.
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 use it in the backport to disable the test with 6.8 (date_nanos was added in 7.0).
This change rewrites the rolling upgrade yml test that was added for date_nanos in Java. This is needed to allow extra logic when backporting to 7.x. date_nanos are not available in 6.x so we need to skip the upgraded test based on the version of the old cluster. Relates #70463
This change rewrites the rolling upgrade yml test that was added for
date_nanos in Java. This is needed to allow extra logic when backporting to
7.x. date_nanos are not available in 6.x so we need to skip the upgraded test
based on the version of the old cluster.
Relates #70463