J.P Feng created HIVE-18324: ------------------------------- Summary: drop database failed for not empty tables, but acid table info in metastore is still deleted Key: HIVE-18324 URL: https://issues.apache.org/jira/browse/HIVE-18324 Project: Hive Issue Type: Bug Components: Hive Affects Versions: 2.3.2, 2.1.1 Reporter: J.P Feng
I use "drop database hive_test" to drop database (without cascade) , because it's not empty, my operation runs fail, and throws exception -> InvalidOperationException(message:Database hive_test is not empty. One or more tables exist.) but acid tables info in TXN_COMPONENTS,COMPLETED_TXN_COMPONENTS,COMPACTION_QUEUE,COMPLETED_COMPACTIONS is still deleted by AcidEventListener. So I advise that, onDropDatabase in AcidEventListener need to judge DropDatabaseEvent.getStatus before delete acid table info. -- This message was sent by Atlassian JIRA (v6.4.14#64029)