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

Fix process node zero timeout and handle not found exceptions #411

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

dbwiddis
Copy link
Member

@dbwiddis dbwiddis commented Jan 17, 2024

Description

Fixes a bug in deprovisioning where the ProcessNode had no timeout and blocked threads.

Also handles exceptionally completed futures with an OpenSearchStatusException with NOT_FOUND status as successful deprovisions.

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 Jan 17, 2024

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (b9d295f) 71.95% compared to head (9562827) 71.83%.

Files Patch % Lines
.../transport/DeprovisionWorkflowTransportAction.java 64.28% 3 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main     #411      +/-   ##
============================================
- Coverage     71.95%   71.83%   -0.13%     
  Complexity      613      613              
============================================
  Files            79       79              
  Lines          3081     3082       +1     
  Branches        238      237       -1     
============================================
- Hits           2217     2214       -3     
- Misses          760      763       +3     
- Partials        104      105       +1     

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

@amitgalitz
Copy link
Member

Thanks for making this fix! Been trying to look at it for a while with no luck finding root cause. I was wondering if you understood why this was happening only on multi node consistently

Copy link
Member

@owaiskazi19 owaiskazi19 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for the fix @dbwiddis

@owaiskazi19 owaiskazi19 merged commit c6e6ed2 into opensearch-project:main Jan 17, 2024
25 of 26 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jan 17, 2024
Signed-off-by: Daniel Widdis <[email protected]>
(cherry picked from commit c6e6ed2)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@dbwiddis dbwiddis deleted the deprovision-fix branch January 17, 2024 03:22
owaiskazi19 pushed a commit that referenced this pull request Jan 17, 2024
…eptions (#412)

Fix process node zero timeout and handle not found exceptions (#411)


(cherry picked from commit c6e6ed2)

Signed-off-by: Daniel Widdis <[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 PRs to 2.x branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants