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

[BUG] Fix index create block getting applied when there is no data nodes healthy #6756

Merged
merged 1 commit into from
Mar 21, 2023

Conversation

RS146BIJAY
Copy link
Contributor

@RS146BIJAY RS146BIJAY commented Mar 20, 2023

Description

This change fixes a bug in which index create block gets applied when there are no healthy data nodes. In case when there is no healthy data nodes, DiskThresholdMonitor (running on ClusterManager nodes) applies index create block as all nodes (0) are above high watermark (0). This change fixes this issue by not applying index create block when there is no healthy data nodes.

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)

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.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@RS146BIJAY RS146BIJAY marked this pull request as ready for review March 20, 2023 15:58
@RS146BIJAY RS146BIJAY changed the title Fix index create block getting applied when there is no data nodes healthy [BUG] Fix index create block getting applied when there is no data nodes healthy Mar 20, 2023
Copy link
Collaborator

@Bukhtawar Bukhtawar left a comment

Choose a reason for hiding this comment

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

LGTM

@gbbafna gbbafna merged commit e6a3700 into opensearch-project:main Mar 21, 2023
@gbbafna gbbafna added the backport 2.x Backport to 2.x branch label Mar 21, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 21, 2023
…althy (#6756)

Signed-off-by: Rishav Sagar <[email protected]>
(cherry picked from commit e6a3700)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
kotwanikunal pushed a commit that referenced this pull request Mar 21, 2023
…althy (#6756) (#6771)

(cherry picked from commit e6a3700)

Signed-off-by: Rishav Sagar <[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>
mingshl pushed a commit to mingshl/OpenSearch-Mingshl that referenced this pull request Mar 24, 2023
mitrofmep pushed a commit to mitrofmep/OpenSearch that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants