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

Add a offsets methods to ZkUtils and replace relevant usages

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      There are many places in the code that manually build a zookeeper path and get or update offsets. Moving this logic to a common location in ZkUtils would be nice.

      Ex:

      zkUtils.readDataMaybeNull(s"${topicDirs.consumerOffsetDir}/${topicPartition.partition}")._1
      
       zkUtils.readData(topicDirs.consumerOffsetDir + "/" + topicAndPartition.partition)._1.toLong
      
      zkUtils.updatePersistentPath(s"${topicDirs.consumerOffsetDir}/${topicPartition.partition}", partitionData.offset.toString)
      

      Attachments

        Issue Links

          Activity

            People

              vahid Vahid Hashemian
              granthenke Grant Henke
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: