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:23:00 UTC

[jira] [Created] (KAFKA-7465) kafka-topics.sh command not honouring --disable-rack-aware property when adding partitions.

Suman B N created KAFKA-7465:
--------------------------------

             Summary: 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: 2.0.0, 1.1.0, 1.0.0, 0.11.0.0
            Reporter: Suman B N
             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)