Improve exception messaging when encountering legacy version IDs#20512
Improve exception messaging when encountering legacy version IDs#20512msfroh wants to merge 2 commits intoopensearch-project:mainfrom
Conversation
|
❌ Gradle check result for 4407508: 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? |
|
❌ Gradle check result for 7f39545: 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? |
|
❌ Gradle check result for 7f39545: 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? |
7f39545 to
9a1a353
Compare
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe PR improves error messaging when opening OpenSearch 3.x indices originally created with Elasticsearch. It introduces a new Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches🧪 Generate unit tests (beta)
Tip Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
❌ Gradle check result for 9a1a353: 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? |
jainankitk
left a comment
There was a problem hiding this comment.
Looks good to me! The failures look unrelated, retried gradle check
|
❌ Gradle check result for 9a1a353: 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? |
|
Hmm... the latest build failed with: Checking the 2.19.5 code, that's this line. |
9a1a353 to
2e98d06
Compare
|
❌ Gradle check result for 2e98d06: 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? |
|
❌ Gradle check result for 2e98d06: 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? |
f942915 to
4e38446
Compare
|
❌ Gradle check result for 4e38446: 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? |
When trying to upgrade an index that was originally created on Elasticsearch, we should throw a human-readable exception saying that it's not supported, rather than a cryptic message like "Version id 7090199 must contain OpenSearch mask". Signed-off-by: Michael Froh <msfroh@apache.org>
Also, I noticed a TODO that could be done. Signed-off-by: Michael Froh <msfroh@apache.org>
4e38446 to
334576f
Compare
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 334576f: 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? |
Description
When trying to upgrade an index that was originally created on Elasticsearch, we should throw a human-readable exception saying that it's not supported, rather than a cryptic message like "Version id 7090199 must contain OpenSearch mask".
Related Issues
Resolves #20499
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.