apache / apache/pinot

Create a new api to completely drop a broker, including auto trigger rebalancing

Open
#10,181 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.1k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
189

Description

```
curl -d 'disable' -X POST '/instances/Broker_XXX/state'
{"status":"Request to disable instance XXX is successful"}

curl -d 'drop' -X POST '/instances/Broker_XXX/state'
{"code":409,"error":"Failed to drop instance Broker_XXX - Instance Broker_XXX exists in ideal state for brokerResource"}
```

It's counter intuitive the broker instance is still in ideal state after disabling.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the broker instance state API described in the issue, including the disable and drop requests and the ideal-state validation for brokerResource. Determine where broker removal and rebalancing are handled. Done means a drop operation can remove a disabled broker from the ideal state and automatically trigger rebalancing, with the documented success and failure responses covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.