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

Rewrite date_nanos rolling upgrade test #70855

Merged
merged 2 commits into from
Mar 26, 2021

Conversation

jimczi
Copy link
Contributor

@jimczi jimczi commented Mar 25, 2021

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 elastic#70463
@jimczi jimczi added >test Issues or PRs that are addressing/adding tests :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.13.0 labels Mar 25, 2021
@elasticmachine elasticmachine added the Team:Search Meta label for search team label Mar 25, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@jimczi
Copy link
Contributor Author

jimczi commented Mar 25, 2021

ci failed on a known issue

@jimczi
Copy link
Contributor Author

jimczi commented Mar 25, 2021

@elasticmachine run elasticsearch-ci/2

Copy link
Member

@dnhatn dnhatn left a 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) {
Copy link
Member

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.

Copy link
Contributor Author

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).

@jimczi jimczi merged commit 2468c41 into elastic:master Mar 26, 2021
@jimczi jimczi deleted the date_nanos_format_upgrade branch March 26, 2021 08:51
jimczi added a commit that referenced this pull request Mar 26, 2021
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Meta label for search team >test Issues or PRs that are addressing/adding tests v7.13.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants