Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-1725

Kafka Spout New Consumer API - KafkaSpoutRetryExponentialBackoff method should use HashMap instead of TreeMap not to throw Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.0.0
    • 1.0.1
    • storm-kafka-client
    • None

    Description

      The method org.apache.storm.kafka.spout.KafkaSpoutRetryExponentialBackoff#retriableTopicPartitions currently uses TreeMap but TopicPartition does not implement Comparable. Since ordering is not important, HashMap is the most appropriate data structure here, and the one I meant to use to begin with.

      The fix will replace TreeMap with HashMap.

      This issue was found by @jianbzhou and credit should be given to him.

      Attachments

        Issue Links

          Activity

            People

              hmclouro Hugo Da Cruz Louro
              hmclouro Hugo Da Cruz Louro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: