Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle EMR Exceptions in FlintCancelJob Operation #2577

Merged
merged 1 commit into from
Mar 25, 2024

Conversation

vmmusings
Copy link
Member

@vmmusings vmmusings commented Mar 20, 2024

Description

This PR handles different kinds of exception from EMRServerless when cancelling a job. There are frequent scenarios where the streaming job is already in cancelled state and resulting in error of ALTER INDEX command. This PR catches scenarios where the job is already in cancelled state and proceeds with the command execution.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.36%. Comparing base (85dae6f) to head (ae7b529).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #2577   +/-   ##
=========================================
  Coverage     95.36%   95.36%           
- Complexity     5129     5131    +2     
=========================================
  Files           490      490           
  Lines         14419    14427    +8     
  Branches        966      968    +2     
=========================================
+ Hits          13751    13759    +8     
  Misses          643      643           
  Partials         25       25           
Flag Coverage Δ
sql-engine 95.36% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vmmusings vmmusings force-pushed the emr-exception branch 2 times, most recently from a23a89e to 1c49359 Compare March 22, 2024 21:12
penghuo
penghuo previously approved these changes Mar 22, 2024
@vmmusings vmmusings force-pushed the emr-exception branch 3 times, most recently from cb2d455 to 4e9910e Compare March 25, 2024 15:52
@vmmusings vmmusings force-pushed the emr-exception branch 3 times, most recently from 3ad9827 to f2047a5 Compare March 25, 2024 16:13
@vmmusings vmmusings self-assigned this Mar 25, 2024
@vmmusings vmmusings added bug Something isn't working v2.13.0 Issues targeting release v2.13.0 backport 2.x backport 2.13 labels Mar 25, 2024
@vmmusings vmmusings merged commit bfcaedf into opensearch-project:main Mar 25, 2024
23 of 28 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 25, 2024
Signed-off-by: Vamsi Manohar <[email protected]>
(cherry picked from commit bfcaedf)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 25, 2024
Signed-off-by: Vamsi Manohar <[email protected]>
(cherry picked from commit bfcaedf)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vmmusings pushed a commit that referenced this pull request Mar 25, 2024
(cherry picked from commit bfcaedf)

Signed-off-by: Vamsi Manohar <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
vmmusings pushed a commit that referenced this pull request Mar 25, 2024
(cherry picked from commit bfcaedf)

Signed-off-by: Vamsi Manohar <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x backport 2.13 bug Something isn't working v2.13.0 Issues targeting release v2.13.0
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

5 participants