mirror of
https://github.com/apache/impala.git
synced 2026-02-03 09:00:39 -05:00
IMPALA-7961 handle the cases for query "create table if not exists" with sync_ddl as true. Customers reported similar issue which happened for query "create database if not exists" with sync_ddl as true. This patch adds the similar fixing as the fixing for IMPALA-7961 to function CatalogOpExecutor.createDatabase() to fix the issue. Testing: - Manual tests Since this is a racy bug, I could only reproduce it by forcing frequent topicUpdateLog GCs along with a specific sequence of actions, like: run some DDLs and REFRESHs to trigger a GC in topicUpdateLog, then run query "create database if not exists" with sync_ddl as true. Verified that the issue couldn't be reproduced after applying this patch. - Passed exhaustive test. Change-Id: Id623118f8938f416414c45d93404fb70d036a9df Reviewed-on: http://gerrit.cloudera.org:8080/16421 Reviewed-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>