You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Suman B N (JIRA)" <ji...@apache.org> on 2018/10/01 19:54:00 UTC
[jira] [Commented] (KAFKA-7465) kafka-topics.sh command not
honouring --disable-rack-aware property when adding partitions.
[ https://issues.apache.org/jira/browse/KAFKA-7465?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16634538#comment-16634538 ]
Suman B N commented on KAFKA-7465:
----------------------------------
Working on this fix. Please assgin the jira to me. [~cmccabe] [~omkreddy]
> kafka-topics.sh command not honouring --disable-rack-aware property when adding partitions.
> -------------------------------------------------------------------------------------------
>
> Key: KAFKA-7465
> URL: https://issues.apache.org/jira/browse/KAFKA-7465
> Project: Kafka
> Issue Type: Bug
> Components: core
> Affects Versions: 0.11.0.0, 1.0.0, 1.1.0, 2.0.0
> Reporter: Suman B N
> Priority: Minor
> Fix For: 2.0.1
>
>
> kafka-topics.sh command not honouring --disable-rack-aware property when adding partitions.
> Create topic honours --disable-rack-aware property. Where as alter topic always honours default rackAwarMode(Enforced) to add partitions.
> Steps:
> * Start brokers.
> 0 -> r1, 1 -> r1, 2 -> r2, 3 -> r2
> * Create topic _topic1_ with 8 partitions and 2 RF. No partition should have replicas on same rack brokers. Ex: 0,1 and 2,3 replica should never be created. Create topic _topic2_ with 8 partitions and 2 RF with --disable-rack-aware. Partition can have replicas on same rack brokers. Ex: 0,1 and 2,3 replica if present is acceptable.
> * Add 8 more partitions to _topic1._ No newly added partition should have replicas on same rack brokers. Ex: 0,1 and 2,3 replica should never be created.
> * Add 8 more partitions to _topic2_ with --disable-rack-aware_._ Newly added partition can have replicas on same rack brokers. Ex: 0,1 and 2,3 replica if present is acceptable. Try repeating this step, no matter what, partitions are always rack-aware.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)