Hello Quanlong Huang, Tim Armstrong, Impala Public Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/14319
to look at the new patch set (#9).
Change subject: IMPALA-8984: Fix race condition in creating Kudu table
......................................................................
IMPALA-8984: Fix race condition in creating Kudu table
This patch fixed the race condition when use 'CREATE IF NOT EXISTS' to
create kudu managed table without Kudu-HMS Integration. This bug would
caused table deleted in Kudu storage, but reserved in HMS when multiple
identical queries submitted at the same time.
Fix is to check whether table already exists in HMS after obtain the
'metastoreDdlLock_' lock. If true, just return 'Table already exists'
tip, otherwise create a new table in HMS and then update catalog.
Tests:
* Add fe test MultiKuduDDLTest.java
* Ran all front-end tests
Change-Id: I1a4047bcdaa6b346765b96e8c36bb747a2b0091d
---
M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java
A fe/src/test/java/org/apache/impala/service/MultiKuduDDLTest.java
M fe/src/test/java/org/apache/impala/testutil/ImpaladTestCatalog.java
A tests/custom_cluster/test_concurrent_kudu_create.py
4 files changed, 293 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/19/14319/9
--
To view, visit http://gerrit.cloudera.org:8080/14319
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I1a4047bcdaa6b346765b96e8c36bb747a2b0091d
Gerrit-Change-Number: 14319
Gerrit-PatchSet: 9
Gerrit-Owner: wangsheng <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Reviewer: Tim Armstrong <[email protected]>
Gerrit-Reviewer: wangsheng <[email protected]>