Impala Public Jenkins has submitted this change and it was merged. ( https://gerrit.cloudera.org/25167 )
Change subject: IMPALA-15605: Keep files of REST commits whose response is lost ...................................................................... IMPALA-15605: Keep files of REST commits whose response is lost When the connection to the REST catalog breaks after a commit request was sent, the catalog may already have applied the commit, but Iceberg reports a RESTException caused by an IOException, not a CommitStateUnknownException. IcebergDmlFinalizer treated it as a failed commit and deleted the written data and delete files, which the committed snapshot referenced. The table could not be read afterwards. IcebergDmlFinalizer now handles a RESTException caused by an I/O error like CommitStateUnknownException: it keeps the files and fails the query. If the request never reached the catalog, the files become orphans, which is safer than deleting files of a committed snapshot. Commits through catalogd never raise a RESTException, so they are not affected. Testing: - New testLostRestResponseKeepsFiles in IcebergRestDmlOperationTest. - New test_update_with_lost_commit_response: a proxy between impalad and the REST server forwards the UPDATE's commit, then closes the connection without the response. The committed snapshot is still readable. It failed before this change. - Ran test_iceberg_rest_catalog.py (15 tests) and the frontend tests above. Change-Id: I472f1d3a1cf5ce269ce82a89fbada8acabcd14fd Assisted-by: Claude Opus 5.5 (Claude Code) Reviewed-on: https://gerrit.cloudera.org/25167 Reviewed-by: Impala Public Jenkins <[email protected]> Tested-by: Impala Public Jenkins <[email protected]> --- M fe/src/main/java/org/apache/impala/common/IcebergPredicateConverter.java M fe/src/main/java/org/apache/impala/service/CatalogOpExecutor.java M fe/src/main/java/org/apache/impala/service/IcebergCatalogOpExecutor.java M fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java M fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java M tests/custom_cluster/test_iceberg_rest_catalog.py 6 files changed, 200 insertions(+), 10 deletions(-) Approvals: Impala Public Jenkins: Looks good to me, approved; Verified -- To view, visit https://gerrit.cloudera.org/25167 To unsubscribe, visit https://gerrit.cloudera.org/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I472f1d3a1cf5ce269ce82a89fbada8acabcd14fd Gerrit-Change-Number: 25167 Gerrit-PatchSet: 7 Gerrit-Owner: Nandor Kollar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Nandor Kollar <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]>
