Peter Rozsa has posted comments on this change. ( http://gerrit.cloudera.org:8080/25167 )
Change subject: IMPALA-15605: Keep files of REST commits whose response is lost ...................................................................... Patch Set 2: Code-Review+1 (3 comments) http://gerrit.cloudera.org:8080/#/c/25167/2/fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java File fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java: http://gerrit.cloudera.org:8080/#/c/25167/2/fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java@149 PS2, Line 149: if (isLostRestResponse(e)) { We could move this check only for commitTransaction. http://gerrit.cloudera.org:8080/#/c/25167/2/fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java File fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java: http://gerrit.cloudera.org:8080/#/c/25167/2/fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java@66 PS2, Line 66: public void testLostRestResponseKeepsFiles() { : RESTException lostResponse = new RESTException( : new IOException("failed to respond"), "Error occurred while processing POST"); : assertTrue(IcebergDmlFinalizer.isLostRestResponse(lostResponse)); : assertTrue(IcebergDmlFinalizer.isLostRestResponse( : new RuntimeException(lostResponse))); : : assertFalse(IcebergDmlFinalizer.isLostRestResponse( : new RESTException("Failed to parse an error response"))); : assertFalse(IcebergDmlFinalizer.isLostRestResponse( : new CommitFailedException("conflict"))); : assertFalse(IcebergDmlFinalizer.isLostRestResponse(new IOException("not REST"))); : } : It could be skipped as the E2E test covers it. http://gerrit.cloudera.org:8080/#/c/25167/2/tests/custom_cluster/test_iceberg_rest_catalog.py File tests/custom_cluster/test_iceberg_rest_catalog.py: http://gerrit.cloudera.org:8080/#/c/25167/2/tests/custom_cluster/test_iceberg_rest_catalog.py@680 PS2, Line 680: print("UPDATE failed with: {}".format(error)) : print("Commit requests: {}, dropped responses (server status): {}".format( : self.proxy.commit_requests, self.proxy.dropped_responses)) : print("Data files added by the UPDATE and still present: {}".format( : set(filesystem_client.ls(data_path)) - files_before)) We should not log these -- 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: comment Gerrit-Change-Id: I472f1d3a1cf5ce269ce82a89fbada8acabcd14fd Gerrit-Change-Number: 25167 Gerrit-PatchSet: 2 Gerrit-Owner: Nandor Kollar <[email protected]> Gerrit-Reviewer: Impala Public Jenkins <[email protected]> Gerrit-Reviewer: Peter Rozsa <[email protected]> Gerrit-Comment-Date: Tue, 27 Oct 2026 13:20:13 +0000 Gerrit-HasComments: Yes
