-
Notifications
You must be signed in to change notification settings - Fork 132
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
Skip delete .plugins-ml-config system index during integ test #1419
Skip delete .plugins-ml-config system index during integ test #1419
Conversation
Signed-off-by: Junqiu Lei <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1419 +/- ##
============================================
- Coverage 84.92% 84.88% -0.04%
Complexity 1274 1274
============================================
Files 167 167
Lines 5186 5186
Branches 491 491
============================================
- Hits 4404 4402 -2
- Misses 573 575 +2
Partials 209 209 ☔ View full report in Codecov by Sentry. |
@@ -212,6 +213,7 @@ private boolean skipDeleteIndex(String indexName) { | |||
return indexName == null | |||
|| OPENDISTRO_SECURITY.equals(indexName) | |||
|| IMMUTABLE_INDEX_PREFIXES.stream().anyMatch(indexName::startsWith) |
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.
Why not add to immutable prefix list?
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.
@jmazanec15 Do you mean to add .plugins-ml
as ML_PLUGIN_SYSTEM_INDEX_PREFIX
for .plugins-ml-config
?
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.
Checked on the index names in ml plugin CommonValue.java, all indexes prefix with .plugins-ml
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.
Right
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.
Updated
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!
Signed-off-by: Junqiu Lei <[email protected]>
(cherry picked from commit 47728ce)
…#1422) (cherry picked from commit 47728ce) Signed-off-by: Junqiu Lei <[email protected]> Co-authored-by: Junqiu Lei <[email protected]>
#1357 now successfully auto closed. #1410, #1411, #1412 still pending close, checked on the Jenkkins CI, they are failed for all plugins, assume it might need some fix at Jenkins CI level. cc @peterzhuamazon |
Description
Skip delete
.plugins-ml-config
system index during integ test.This PR helps to resolve the error during k-NN build security enabled integ test in release Jenkins concurrent-search-test CI:
Test
With @peterzhuamazon 's help, the Jenkins’s CI build passed with this code change. Attached logs:
knn-junqiu-lei-skip-delete-ml-config-gradle.log
2.12.0-concurrent-settings-cluster.log
Issues Resolved
#1357, #1410, #1411, #1412
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.