Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9252

StringUtils.humanReadableInt(..) has a race condition

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.3-alpha
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      humanReadableInt(..) incorrectly uses oneDecimal without synchronization.

      Also, limitDecimalTo2(double) correctly uses decimalFormat with synchronization. However, synchronization can be avoided for a better performance.

        Attachments

        1. c9252_20130204.patch
          17 kB
          Tsz-wo Sze
        2. c9252_20130203.patch
          16 kB
          Tsz-wo Sze
        3. c9252_20130128.patch
          10 kB
          Tsz-wo Sze
        4. c9252_20130127.patch
          10 kB
          Tsz-wo Sze

          Issue Links

            Activity

              People

              • Assignee:
                szetszwo Tsz-wo Sze
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: