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

HDDS-11032. Decommissioned datanodes shows up again after removing in Recon Datanodes page. #6833

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

devmadhuu
Copy link
Contributor

What changes were proposed in this pull request?

This PR is to stop showing Decommissioned datanodes again on Recon Datanodes page after removing them explicitly.

Ozone Recon - Decommissioned datanodes shows up again after removing in Recon Datanodes page.
As part of HDDS-10409

Recon was allowing to remove the Decommissioned datanodes and was removing from Recon rocksDB nodes table, however Decommissioned datanodes continue to send heartbeats till they are being shutdown, so they get registered and added again in Recon memory map which makes them show up again in datanodes UI.

Solution is to allow only DEAD datanodes to be removed and skip other node status or node operational status datanodes.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-11032

How was this patch tested?

This patch was tested by updating the existing integration test to make sure that only DEAD datanodes are being allowed to remove.

@adoroszlai adoroszlai changed the title HDDS-11032. Ozone Recon - Decommissioned datanodes shows up again after removing in Recon Datanodes page. HDDS-11032. Decommissioned datanodes shows up again after removing in Recon Datanodes page. Jun 19, 2024
@devmadhuu
Copy link
Contributor Author

@sumitagrawl @ArafatKhan2198 Pls review.

@devmadhuu devmadhuu marked this pull request as ready for review June 19, 2024 09:59
Copy link
Contributor

@sumitagrawl sumitagrawl left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@ArafatKhan2198 ArafatKhan2198 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix, @devmadhuu! The changes in the PR look good! LGTM +1
Should we also update the UI to indicate that only dead nodes are allowed to be removed?

@devmadhuu
Copy link
Contributor Author

Thanks for the fix, @devmadhuu! The changes in the PR look good! LGTM +1 Should we also update the UI to indicate that only dead nodes are allowed to be removed?

Yes, we have UI PR which has changes to allow only those node having DEAD node status .

@ArafatKhan2198
Copy link
Contributor

Thanks for the patch @devmadhuu and @sumitagrawl for the review!

@ArafatKhan2198 ArafatKhan2198 merged commit 44cb3a5 into apache:master Jun 19, 2024
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants