Impala Public Jenkins has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/20306 )
Change subject: IMPALA-12228: Simulate the failure of an iceberg transaction. ...................................................................... IMPALA-12228: Simulate the failure of an iceberg transaction. The commit of an Iceberg transaction is done by the Iceberg catalog. In the common case for Impala the Iceberg catalog is HiveCatalog, and the actual commit is performed by HMS. This means the commit could fail because of some activity outside of Impala. It is useful therefore to be able to simulate what happens when an Iceberg commit fails. Extend Java DebugAction to allow it to throw an exception. For now this is limited to throwing unchecked exceptions, which is all that is needed for this patch. Add two DebugActions that can be used to throw Iceberg CommitFailedExceptions at the point where the Iceberg transaction is about to commit. Add a new test that uses the new DebugActions to abort an insert and the addition of a column. Change-Id: Iafdacc3377a0a946ead9331ba6a63a1fbb11f0eb Reviewed-on: http://gerrit.cloudera.org:8080/20306 Reviewed-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenk...@cloudera.com> --- M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java M fe/src/main/java/org/apache/impala/util/DebugUtils.java M fe/src/test/java/org/apache/impala/util/DebugUtilsTest.java M tests/query_test/test_iceberg.py 4 files changed, 123 insertions(+), 6 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/20306 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: Iafdacc3377a0a946ead9331ba6a63a1fbb11f0eb Gerrit-Change-Number: 20306 Gerrit-PatchSet: 3 Gerrit-Owner: Andrew Sherman <asher...@cloudera.com> Gerrit-Reviewer: Andrew Sherman <asher...@cloudera.com> Gerrit-Reviewer: Gabor Kaszab <gaborkas...@cloudera.com> Gerrit-Reviewer: Gergely Fürnstáhl <g.furnst...@gmail.com> Gerrit-Reviewer: Impala Public Jenkins <impala-public-jenk...@cloudera.com> Gerrit-Reviewer: Tamas Mate <tma...@apache.org> Gerrit-Reviewer: Zoltan Borok-Nagy <borokna...@cloudera.com>