-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Ensure index templates are not applied to system indices #16418
Ensure index templates are not applied to system indices #16418
Conversation
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
Please advice for backporting |
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.
Approach LGTM.
How can we test this? I've been looking at MetadataCreateIndexTests
and don't see that we ever test this method directly.
server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/opensearch/cluster/metadata/MetadataCreateIndexService.java
Show resolved
Hide resolved
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
❌ Gradle check result for 852fb79: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
❕ Gradle check result for 2d29659: UNSTABLE Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure. |
@andrross LGTY? thanks! |
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.
Re-approving after the IT addition. Thanks for sticking with this, @pyek-bot !
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com>
❌ Gradle check result for d80f7d0: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
Flaky tests:
|
Need support to merge this PR, blocking merge due to flaky tests. Requesting either re-running workflow or merge please. Thanks! |
* fix: ensure system indices are processed without templates Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * refactor: overloaded method for creating without templates Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * test: adding test to check call for notemplates on system index Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * refactor: cchange modifier to package private and add entry in changelog Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * test: adding IT test Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * refactor: remove UT and add private modifiers Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> * refactor: spotless changes Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> --------- Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> (cherry picked from commit 1e7c122) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…6518) * fix: ensure system indices are processed without templates * refactor: overloaded method for creating without templates * test: adding test to check call for notemplates on system index * refactor: cchange modifier to package private and add entry in changelog * test: adding IT test * refactor: remove UT and add private modifiers * refactor: spotless changes --------- (cherry picked from commit 1e7c122) Signed-off-by: Pavan Yekbote <mail2pavanyekbote@gmail.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Prevents index templates from applying to system indices
Related Issues
Resolves #16340
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.