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

HiveMetaStoreChecker: remove singleThread logic duplication

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: