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

Improve HiveMetaStoreClient.dropDatabase

    XMLWordPrintableJSON

Details

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

    Description

      HiveMetaStoreClient.dropDatabase has a strange implementation to ensure dealing with client side hooks (for non-native tables e.g. HBase). Currently it starts by retrieving all the tables from HMS, and then sends dropTable calls to HMS table-by-table. At the end a dropDatabase just to be sure  

      I believe this could be refactored so that it speeds up the dropDB in situations where the average table count per DB is very high.

      Attachments

        1. HIVE-18705.11.patch
          36 kB
          Ádám Szita
        2. HIVE-18705.10.patch
          36 kB
          Ádám Szita
        3. HIVE-18705.9.patch
          36 kB
          Ádám Szita
        4. HIVE-18705.8.patch
          36 kB
          Ádám Szita
        5. HIVE-18705.7.patch
          36 kB
          Ádám Szita
        6. HIVE-18705.6.patch
          35 kB
          Ádám Szita
        7. HIVE-18705.5.patch
          21 kB
          Ádám Szita
        8. HIVE-18705.4.patch
          21 kB
          Ádám Szita
        9. HIVE-18705.2.patch
          19 kB
          Ádám Szita
        10. HIVE-18705.1.patch
          20 kB
          Ádám Szita
        11. HIVE-18705.0.patch
          20 kB
          Ádám Szita

        Issue Links

          Activity

            People

              szita Ádám Szita
              szita Ádám Szita
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: