Skip to content

Conversation

@ask-kamal-nayan
Copy link
Contributor

@ask-kamal-nayan ask-kamal-nayan commented Apr 28, 2025

Description

The manual snapshot policy management system needs modification to prevent false alarm notifications caused by internal version conflict exceptions during concurrent snapshot operations.
GitHub Issue Reference
Current Behavior:

  • Snapshot policy creates/deletes snapshots via cron jobs
  • State updates are made to .ism-config system index
  • Race conditions occur during concurrent operations which cause VersionConflictEngineException
  • Manual snapshot happens as expected from users.
  • Users receive notifications for all exceptions, including internal version conflicts
  • False alarms are triggered for non-user-impacting issues

Proposed Changes:
Modify exception handling to suppress notifications for VersionConflictEngineException just log this as error message.
Maintain notifications for all other exception type

Related Issues

GitHub Issue Reference

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.

@ask-kamal-nayan ask-kamal-nayan marked this pull request as ready for review May 6, 2025 09:35
@ask-kamal-nayan ask-kamal-nayan force-pushed the user/askkamal/ss branch 2 times, most recently from f75852f to dadf888 Compare May 22, 2025 13:45
…s in Snapshot Management

Signed-off-by: Kamal Nayan <askkamal@amazon.com>

Unwrapped the exception

Signed-off-by: Kamal Nayan <askkamal@amazon.com>

Added the unit tests and updated the code

Signed-off-by: Kamal Nayan <askkamal@amazon.com>

Updated the code for minor fixes and nits

Signed-off-by: Kamal Nayan <askkamal@amazon.com>

Updated the unit Test

Signed-off-by: Kamal Nayan <askkamal@amazon.com>

Updated access modifier for the updateMetaDataRetryPolicy

Signed-off-by: Kamal Nayan <askkamal@amazon.com>
@bowenlan-amzn bowenlan-amzn merged commit 4ef0f4f into opensearch-project:main May 22, 2025
16 of 17 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.

7 participants