Nandor Kollar has uploaded this change for review. ( http://gerrit.cloudera.org:8080/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) --- 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 3 files changed, 190 insertions(+), 0 deletions(-) git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/67/25167/1 -- To view, visit http://gerrit.cloudera.org:8080/25167 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: Impala-ASF Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I472f1d3a1cf5ce269ce82a89fbada8acabcd14fd Gerrit-Change-Number: 25167 Gerrit-PatchSet: 1 Gerrit-Owner: Nandor Kollar <[email protected]>
