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

MSCK Repair table should fix partitions in batches

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0
    • Component/s: Hive
    • Labels:
      None

      Description

      If a user attempts to run MSCK REPAIR TABLE on a directory with a large number of untracked partitions HMS will OOME. I suspect this is because it attempts to do one large bulk load in an effort to save time. Ultimately this can lead to a collection so large in size that HMS eventually hits an Out of Memory Exception.

      Instead I suggest that Hive include a configurable batch size that HMS can use to break up the load.

        Attachments

        1. HIVE-12077.5.patch
          6 kB
          Chinna Rao Lalam
        2. HIVE-12077.4.patch
          6 kB
          Chinna Rao Lalam
        3. HIVE-12077.3.patch
          6 kB
          Chinna Rao Lalam
        4. HIVE-12077.2.patch
          6 kB
          Chinna Rao Lalam
        5. HIVE-12077.1.patch
          4 kB
          Chinna Rao Lalam

          Issue Links

            Activity

              People

              • Assignee:
                chinnalalam Chinna Rao Lalam
                Reporter:
                Ryan P Ryan P
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: