Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-7465

kafka-topics.sh command not honouring --disable-rack-aware property when adding partitions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.11.0.0, 1.0.0, 1.1.0, 2.0.0
    • None
    • core
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sumannewton Suman B N
            Colin McCabe Colin McCabe
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: