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

[admin] DeleteBookieRack should remove the rack info from zookeeper #5084

Merged
merged 2 commits into from
Sep 1, 2019

Conversation

sijie
Copy link
Member

@sijie sijie commented Aug 30, 2019

Motivation

Currently deleteBookieRackInfo doesn't actually remove rack info from zookeeper.
So if a broker restarts, you still can get the deleted bookie rack info.

Modification

  • Fix the deleteBbookieInfo logic to update rack configuration in zookeeper
  • Remove a group from the map if the group is empty

*Motivation*

Currently deleteBookieRackInfo doesn't actually remove rack info from zookeeper.
So if a broker restarts, you still can get the *deleted* bookie rack info.

*Modification*

- Fix the deleteBbookieInfo logic to update rack configuration in zookeeper
- Remove a group from the map if the group is empty
@sijie sijie self-assigned this Aug 30, 2019
@sijie sijie added area/admin type/bug The PR fixed a bug or issue reported a bug labels Aug 30, 2019
@sijie sijie added this to the 2.4.2 milestone Aug 30, 2019
@sijie
Copy link
Member Author

sijie commented Aug 31, 2019

run java8 tests

@codelipenghui
Copy link
Contributor

run java8 tests

1 similar comment
@sijie
Copy link
Member Author

sijie commented Aug 31, 2019

run java8 tests

@sijie sijie merged commit 4cd25ee into apache:master Sep 1, 2019
@sijie sijie deleted the fix_delete_rack_info branch September 1, 2019 01:26
wolfstudy pushed a commit that referenced this pull request Nov 20, 2019
…5084)

*Motivation*

Currently deleteBookieRackInfo doesn't actually remove rack info from zookeeper.
So if a broker restarts, you still can get the *deleted* bookie rack info.

*Modification*

- Fix the deleteBbookieInfo logic to update rack configuration in zookeeper
- Remove a group from the map if the group is empty

(cherry picked from commit 4cd25ee)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants