Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Add broker decommission api #137

Merged
merged 1 commit into from
May 12, 2019

Conversation

kabochya
Copy link
Contributor

@kabochya kabochya commented May 7, 2019

  1. Added Broker decommissioning API endpoint
  2. Expose decommission status in UI
  3. Small refactor of API code for reusability

Notes:
Currently, a decommissioned broker

  • WILL:
    1. Be ignored when checking for dead brokers (and thus no replacement will happen)
    2. Be ignored during URP reassignments
    3. Still update stats so it can catch up if decommission is cancelled
  • WILL NOT:
    1. Reassign the partitions to other brokers, you have to do it manually

Decommissioning is ephemeral for now, state is not preserved in ZK, so if a restart happens, we will have to do it again

Copy link
Contributor

@yuyang08 yuyang08 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for making the change!

@kabochya kabochya force-pushed the feature/broker-decommission-api branch 7 times, most recently from b7d0d3d to bce2838 Compare May 9, 2019 20:29
add email notifications for decommissioning
refactor api code
make broker api return decommission info, refactored getters to comply with convention, reordering to group getter/setters
modify UI to expose decommission status
@kabochya kabochya force-pushed the feature/broker-decommission-api branch from bce2838 to 5676eba Compare May 10, 2019 17:08
Copy link
Contributor

@ambud ambud 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 making the change.

@kabochya kabochya merged commit babe941 into pinterest:master May 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants