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

Reduce number of FS getFileStatus calls in AcidUtils::getHdfsDirSnapshots

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • None
    • None

    Description

      https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java#L1380

      ACID delta folder contains _orc_acid_version and bucket_00000 files. For both these files, parent dir is the same. Number of getFileStatus in such cases should be reduced by 1/2.

      Attachments

        1. HIVE-22609.1.patch
          1 kB
          Rajesh Balamohan
        2. HIVE-22609.2.patch
          1 kB
          Rajesh Balamohan
        3. HIVE-22609.3.patch
          2 kB
          Rajesh Balamohan
        4. HIVE-22609.4.patch
          2 kB
          Rajesh Balamohan
        5. HIVE-22609.5.patch
          2 kB
          Rajesh Balamohan

        Activity

          People

            rajesh.balamohan Rajesh Balamohan
            rajesh.balamohan Rajesh Balamohan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: