Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-18929

The method humanReadableInt in HiveStringUtils.java has a race condition.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.2
    • 4.0.0-alpha-1
    • API
    • None

    Description

      I found that the humanReadableInt(long number) method in the hive/common/src/java/org/apache/hive/common/util/HiveStringUtils.java file contains code which has a race condition as shown in Hadoop (issue tracking ID HADOOP-9252: https://issues.apache.org/jira/browse/HADOOP-9252). The fix can also be seen in the Hadoop code base.

      I couldn't find a call to the method anywhere else in the code. But it might be worth to fix.

      Attachments

        1. HIVE-18929.1.patch
          2 kB
          Andrew Sherman

        Activity

          People

            asherman Andrew Sherman
            cragkhit Chaiyong Ragkhitwetsagul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: