impala-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Impala Public Jenkins (Code Review)" <>
Subject [Impala-ASF-CR] IMPALA-8984: Fix race condition in creating Kudu table
Date Fri, 03 Jan 2020 04:10:07 GMT
Impala Public Jenkins has submitted this change and it was merged. (

Change subject: IMPALA-8984: Fix race condition in creating Kudu table

IMPALA-8984: Fix race condition in creating Kudu table

This patch fixes the race condition when using 'CREATE IF NOT EXISTS'
to create the same managed kudu table in parallel. Note that it won't
happend if Kudu-HMS integration is enable. The bug would cause the
table being deleted in Kudu but reserving in HMS.

The solution is adding check for HMS table existence before creating
it in HMS and after obtaining 'metastoreDdlLock_'. If the HMS table is
created by other concurrent threads, just return as
'Table already exists'. So we don't fail in creating the HMS table and
won't rollback the creation of kudu table.

  * Add custom cluster test
  * Ran all front-end tests

Change-Id: I1a4047bcdaa6b346765b96e8c36bb747a2b0091d
Reviewed-by: Impala Public Jenkins <>
Tested-by: Impala Public Jenkins <>
M fe/src/main/java/org/apache/impala/service/
M fe/src/main/java/org/apache/impala/service/
A tests/custom_cluster/
3 files changed, 101 insertions(+), 22 deletions(-)

  Impala Public Jenkins: Looks good to me, approved; Verified

To view, visit
To unsubscribe, visit

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1a4047bcdaa6b346765b96e8c36bb747a2b0091d
Gerrit-Change-Number: 14319
Gerrit-PatchSet: 22
Gerrit-Owner: wangsheng <>
Gerrit-Reviewer: Csaba Ringhofer <>
Gerrit-Reviewer: Impala Public Jenkins <>
Gerrit-Reviewer: Quanlong Huang <>
Gerrit-Reviewer: Vihang Karajgaonkar <>
Gerrit-Reviewer: wangsheng <>

  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message