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

    Assignee: huxi

> 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
>
> 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