Revert "Add metadata to support shard split (#20859)"#20935
Revert "Add metadata to support shard split (#20859)"#20935andrross wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
This reverts commit ed2e100. The change to IndexMetadata has resulted in bwc failures with the remote cluster state feature. Signed-off-by: Andrew Ross <andrross@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|
❌ Gradle check result for 60dda9b: 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? |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #20935 +/- ##
============================================
- Coverage 73.30% 73.27% -0.04%
+ Complexity 72484 72444 -40
============================================
Files 5819 5817 -2
Lines 331155 330872 -283
Branches 47840 47739 -101
============================================
- Hits 242769 242444 -325
- Misses 68876 68951 +75
+ Partials 19510 19477 -33 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Closing as the failing test has been removed #20942 |
This reverts commit ed2e100.
The change to IndexMetadata has resulted in bwc failures with the remote cluster state feature. I'm seeing a lot of failures like this: https://build.ci.opensearch.org/job/gradle-check/72870/consoleText
The old node (v3.5.1-remote-2) tries to read this remote cluster state. Its IndexMetadata.fromXContent() doesn't recognize split_shards_metadata or primary_terms_map, so it falls through to the catch-all
else clause at the end of the START_OBJECT handling:
Related to #20910
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.