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

StringUtils.humanReadableInt(..) has a race condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.0.3-alpha
    • util
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: