[ 
https://issues.apache.org/jira/browse/KAFKA-5091?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jason Gustafson resolved KAFKA-5091.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 0.11.0.0

Issue resolved by pull request 2904
[https://github.com/apache/kafka/pull/2904]

> ReassignPartitionsCommand should protect against empty replica list 
> assignment 
> -------------------------------------------------------------------------------
>
>                 Key: KAFKA-5091
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5091
>             Project: Kafka
>          Issue Type: Improvement
>          Components: tools
>            Reporter: Ryan P
>            Assignee: huxi
>             Fix For: 0.11.0.0
>
>
> Currently it is possible to lower a topics replication factor to 0 through 
> the use of the kafka-reassign-partitions command. 
> i.e. 
> cat increase-replication-factor.json
>   {"version":1,
>   "partitions":[{"topic":"foo","partition":0,"replicas":[]}]}
> kafka-reassign-partitions --zookeeper localhost:2181 --reassignment-json-file 
> increase-replication-factor.json --execute
> Topic:test    PartitionCount:1        ReplicationFactor:0     Configs:
>       Topic: foo      Partition: 0    Leader: -1      Replicas:       Isr:
> I for one can't think of a reason why this is something someone would do 
> intentionally. That said I think it's worth validating that at least 1 
> replica remains within the replica list prior to executing the partition 
> reassignment. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to