Skip to content

Add isIndexNotFoundException utility to AlertingException#933

Merged
riysaxen-amzn merged 1 commit intoopensearch-project:remote-metadata-supportfrom
manaswini1920:feature/sdk-index-not-found-util
Apr 7, 2026
Merged

Add isIndexNotFoundException utility to AlertingException#933
riysaxen-amzn merged 1 commit intoopensearch-project:remote-metadata-supportfrom
manaswini1920:feature/sdk-index-not-found-util

Conversation

@manaswini1920
Copy link
Copy Markdown
Contributor

@manaswini1920 manaswini1920 commented Apr 6, 2026

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:

  • Commits are signed per the DCO using --signoff.

The rest (testing, docs, API changes, public docs) are N/A for this utility method addition.

Walks the exception cause chain to detect IndexNotFoundException.
Needed for SDK migration where exceptions are wrapped.

Signed-off-by: Manaswini Ragamouni <ragamanu@amazon.com>
@riysaxen-amzn riysaxen-amzn merged commit 7e56312 into opensearch-project:remote-metadata-support Apr 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants