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

Drop database may hang if the tables get deleted from a different call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.0, 2.0.0
    • 4.0.0-alpha-1
    • Standalone Metastore
    • None

    Description

      In HiveMetaStore.java drop_database_core function, HIVE-11258 updates the startIndex from endIndex incorrectly inside if (tables != null && !tables.isEmpty()) statement. If the tables get deleted before getTableObjectsByName() call, then returned table list is empty and startIndex won't get updated.

      Attachments

        1. HIVE-20345.1.patch
          0.9 kB
          Aihua Xu

        Activity

          People

            aihuaxu Aihua Xu
            aihuaxu Aihua Xu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: