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

org.apache.kafka.common.utils.Utils.abs method returns wrong value for negative numbers.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.8.2.0
    • 0.9.0.0
    • None
    • None

    Description

      org.apache.kafka.common.utils.Utils.abs method returns wrong value for negative numbers. The method only returns intended value for positive numbers. All negative numbers except the Integer.Min_Value will be returned an unsigned integer.

      Attachments

        1. KAFKA-1988_2015-03-03_19:00:21.patch
          5 kB
          Tong Li
        2. KAFKA-1988_2015-03-03_19:03:31.patch
          5 kB
          Tong Li
        3. KAFKA-1988.patch
          5 kB
          Tong Li
        4. KAFKA-1988.patch
          11 kB
          Tong Li
        5. KAFKA-1988.patch
          2 kB
          Tong Li

        Activity

          People

            tongli Tong Li
            tongli Tong Li
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: