Add isIndexNotFoundException utility to AlertingException#933
Merged
riysaxen-amzn merged 1 commit intoopensearch-project:remote-metadata-supportfrom Apr 7, 2026
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>
engechas
approved these changes
Apr 7, 2026
riysaxen-amzn
approved these changes
Apr 7, 2026
7e56312
into
opensearch-project:remote-metadata-support
9 checks passed
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.
Add isIndexNotFoundException utility to AlertingException
Description:
Add 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.
This utility is needed by the alerting plugin's SDK migration and is reusable by any plugin using the remote metadata SDK.
Related Issues:
Part of alerting SDK migration: opensearch-project/alerting#2083
Check List:
The rest (testing, docs, API changes, public docs) are N/A for this utility method addition.