Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-9069

Impala should acquire an ACID lock when dropping a database

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Epic Color:
      ghx-label-6

      Description

      Dropping a table takes an exclusive lock on the table, hence it cannot be removed while other queries are working on it.

      However, dropping a database doesn't take any locks, so it just starts removing table data even if there are locks on the table by other clients.

      Moreover, the Hive Metastore doesn't delete the locks that refer to dropped entities and when the database and tables are re-created those locks will be still around (because the locks refer to the databases and tables via their names).

      Impala should acquire an exclusive lock on the database during DROP.

        Attachments

          Activity

            People

            • Assignee:
              boroknagyz Zoltán Borók-Nagy
              Reporter:
              boroknagyz Zoltán Borók-Nagy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: