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

HiveMetaStoreChecker: remove singleThread logic duplication

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: None
    • Labels:
      None

      Description

      It looks to me that the main logic is duplicated, because of multithereading support:

      • HiveMetaStoreChecker#PathDepthInfoCallable#processPathDepthInfo
      • HiveMetaStoreChecker#checkPartitionDirsSingleThreaded

      It might be possible to remove the singleThreaded methods by using a special executor for single thread support: MoreExecutors.sameThreadExecutor().

        Attachments

        1. HIVE-16119.1.patch
          9 kB
          Zoltan Haindrich
        2. HIVE-16119.2.patch
          11 kB
          Zoltan Haindrich
        3. HIVE-16119.3.patch
          11 kB
          Zoltan Haindrich

          Activity

            People

            • Assignee:
              kgyrtkirk Zoltan Haindrich
              Reporter:
              kgyrtkirk Zoltan Haindrich
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: