-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Upgrade Assistant] Reindexing optimizations #205055
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/kibana-core (Team:Core) |
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
cc @afharo |
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.
Tested locally and this works as expected. Great work @afharo , I think you covered everything. Left a minor comment about a test case.
}); | ||
|
||
if (!settingsResponse.acknowledged) { | ||
throw error.cannotCreateIndex(`The original index settings could not be restored.`); |
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.
Is it possible to include some more info from the settingsResponse
in this case? Could be useful for debugging in future scenarios.
|
||
// The new index was created | ||
expect(indexSummary[newIndexName]).to.be.an('object'); | ||
// The original index name is aliased to the new one | ||
expect(indexSummary[newIndexName].aliases?.dummydata).to.be.an('object'); | ||
// Verify mappings exist on new index | ||
expect(indexSummary[newIndexName].mappings?.properties).to.be.an('object'); | ||
// Verify settings exist on new index | ||
expect(indexSummary[newIndexName].settings).to.be.an('object'); | ||
expect({ |
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.
Did this archive have an index with non-default settings? Would be nice to have a test case with default settings and one with explicit settings.
Summary
Upgrade assistant sets recommended index settings for faster reindexing operations, and reverts them after completion.
Resolves #201605.
Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.