Add isIndexNotFoundException utility to AlertingException#934
Merged
riysaxen-amzn merged 2 commits intoopensearch-project:mainfrom Apr 9, 2026
Merged
Conversation
Walks the exception cause chain to detect IndexNotFoundException. Needed for SDK migration where exceptions are wrapped. Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
eirsep
previously approved these changes
Apr 9, 2026
engechas
previously approved these changes
Apr 9, 2026
Update test assertions from com.fasterxml.jackson.core.JsonParseException to org.opensearch.tools.jackson.core.JsonParseException to match the Jackson repackaging in OpenSearch core. Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
6601660 to
49ada8d
Compare
riysaxen-amzn
approved these changes
Apr 9, 2026
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Cherry-pick of #933 (merged to remote-metadata-support) to main. Adds AlertingException.isIndexNotFoundException() that walks the exception cause chain to detect IndexNotFoundException. The remote metadata SDK wraps IndexNotFoundException inside
OpenSearchStatusException, so callers checking e.message directly miss it. Needed by the alerting plugin's SDK migration.
Related Issues:
Part of alerting SDK migration: opensearch-project/alerting#2088
Check List: