-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Simplify synonyms YAML tests after auto expand replicas changed #120700
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
Simplify synonyms YAML tests after auto expand replicas changed #120700
Conversation
Pinging @elastic/es-search-relevance (Team:Search Relevance) |
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.
🤔 This might work. Mixed cluster behavior is still dubious to me.
@@ -14,10 +14,8 @@ setup: | |||
# This is to ensure that all index shards (write and read) are available. In serverless this can take some time. | |||
- do: | |||
cluster.health: | |||
index: .synonyms-2 | |||
timeout: 2s | |||
index: .synonyms |
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.
Not related to this PR, but for my educaiton: what is .synynoms-2
? Why we added it?
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.
.synonyms-2
is the current version of the index - we changed the index format before releasing it, so it has a -2
suffix to it.
.synonyms
is the alias for the system indices. I think it's more correct to refer to the alias instead of the specific index, so in case it changes we don't have to change all the YAML tests.
So, it's unrelated to this change, but I thought we could do some winter cleaning here 🙂
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.
Thanks, Carlos, makes sense
💚 Backport successful
|
BwC tests are failing in the backport to 8.x . So it seems that the following is not true:
I'm confused about why an upgraded node (with the auto-expand replicas set to 0-1) would create an index with auto-expand replicas set to 0-all. 🤔 I'll watch test failures on main. That seems to be working as bwc tests on 8.18 already include the auto expand replica change. Worst case scenario, we don't backport this test simplification to 8.x, and keep it in main. And eventually, we'll stop supporting 8.17 and 8.16 so we'll forget about this. I won't, but others will. |
Follow up to #115078
After changing auto-expand replicas to 0-1 for synonyms system index, we can now simplify the YAML tests.
Now we can wait for green on the synonyms index, knowing that:
For bwc tests mixed cluster tests, there will be 2 updated nodes and 2 non-updated nodes.
For serverless, we will wait until the index is green with no timeout, so the tests will wait for a search replica to be available before proceeding.