Kafka
  1. Kafka
  2. KAFKA-755

standardizing json values stored in ZK

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.8.0
    • Fix Version/s: 0.8.0
    • Component/s: core
    • Labels:

      Description

      Currently, we have the following paths in ZK that stores non-singleton values.

      1. Topic assignment value:
      /brokers/topics/topic

      { "0": ["0"] }

      2. LeaderAndISR info:
      /brokers/topics/test/partitions/0/leaderAndISR

      { "ISR":"0,1","leader":"0","controllerEpoch":"1","leaderEpoch":"0" }

      3. broker registration:
      /brokers/ids/0
      192.168.1.148:9092:9999

      4. partition reassignment path

      It would be good if we do the following:
      a. make them true json (e.g., using number as the value for broker/partition, instead of string).
      b. add version support for future growth.

      1. kafka-755-v1.patch
        47 kB
        Swapnil Ghike
      2. kafka-755-v2.patch
        47 kB
        Swapnil Ghike
      3. kafka-755-v3.patch
        48 kB
        Swapnil Ghike

        Activity

        Jun Rao created issue -
        Jun Rao made changes -
        Field Original Value New Value
        Affects Version/s 0.8 [ 12317244 ]
        Description Currently, we have the following paths in ZK that stores non-singleton values.

        1. Topic assignment value:
        /brokers/topics/topic
        { "0": ["0"] }

        2. LeaderAndISR info:
        /brokers/topics/test/partitions/0/leaderAndISR
        { "ISR":"0","leader":"0","controllerEpoch":"1","leaderEpoch":"0" }

        3. broker registration:
        /brokers/ids/0
        192.168.1.148:9092:9999

        4. partition reassignment path

        It would be good if we do the following:
        a. make them true json (e.g., using number as the value for broker/partition, instead of string).
        b. add version support for future growth.


        Currently, we have the following paths in ZK that stores non-singleton values.

        1. Topic assignment value:
        /brokers/topics/topic
        { "0": ["0"] }

        2. LeaderAndISR info:
        /brokers/topics/test/partitions/0/leaderAndISR
        { "ISR":"0,1","leader":"0","controllerEpoch":"1","leaderEpoch":"0" }

        3. broker registration:
        /brokers/ids/0
        192.168.1.148:9092:9999

        4. partition reassignment path

        It would be good if we do the following:
        a. make them true json (e.g., using number as the value for broker/partition, instead of string).
        b. add version support for future growth.


        Fix Version/s 0.8 [ 12317244 ]
        Swapnil Ghike made changes -
        Assignee Swapnil Ghike [ swapnilghike ]
        Swapnil Ghike made changes -
        Attachment kafka-755-v1.patch [ 12570277 ]
        Swapnil Ghike made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Neha Narkhede made changes -
        Labels p1
        Swapnil Ghike made changes -
        Attachment kafka-755-v2.patch [ 12570433 ]
        Swapnil Ghike made changes -
        Attachment kafka-755-v3.patch [ 12570562 ]
        Jun Rao made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Neha Narkhede made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Swapnil Ghike
            Reporter:
            Jun Rao
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development