Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
ghx-label-8
Description
TRUNCATE TABLE doesn't seem to work on ACID tables in an S3 environment (with S3 guard)
I couldn't reproduce it yet in Impala dev env, and I am not completely sure that the cause is actually S3, but found an operation that could possibly go wrong on S3:
https://github.com/apache/impala/blob/master/fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java#L2115
Simply calling Create(Path) does create the file in HDFS, but I think that it is only created on S3 when the returned stream is closed.
All related tests are skipped if the environment is S3, so it seems possible that the bug could slip through Impala's component tests.