Nick Travers created KAFKA-4681:
-----------------------------------

             Summary: Disallow reassign-partitions script to assign partitions 
to non-existent brokers
                 Key: KAFKA-4681
                 URL: https://issues.apache.org/jira/browse/KAFKA-4681
             Project: Kafka
          Issue Type: Improvement
            Reporter: Nick Travers
            Priority: Minor


When running the {{kafka-reassign-partitions.sh}} script, it is possible for 
partitions to be accidentally assigned to brokers that do not exist.

This results in partitions with an indefinitely reduced ISR set, as the 
partition can never be replicated to the non-existent broker.

The solution was to add a new broker with the "bogus" broker ID, reassign the 
partitions to other brokers, before decommissioning the bogus broker. This is 
not ideal due to the increased operational burden of adding and removing 
brokers, in addition to manually moving partitions around.

Suggest patching the script to disallow assignment of partitions to brokers 
that either do not exist, or brokers that are dead, and not participating in 
the ISR of other partitions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to