Nandor Kollar has posted comments on this change. ( 
https://gerrit.cloudera.org/25167 )

Change subject: IMPALA-15605: Keep files of REST commits whose response is lost
......................................................................


Patch Set 5:

(3 comments)

> Patch Set 2: Code-Review+1
>
> (3 comments)

https://gerrit.cloudera.org/#/c/25167/2/fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java
File fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java:

https://gerrit.cloudera.org/#/c/25167/2/fe/src/main/java/org/apache/impala/service/IcebergDmlFinalizer.java@149
PS2, Line 149:     // If the commit failed, the newly written files should be 
deleted to avoid creating
> We could move this check only for commitTransaction.
Done, I introduced a new flag: commitAttempted. I it only set when we reach 
commitTransaction.


https://gerrit.cloudera.org/#/c/25167/2/fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java
File 
fe/src/test/java/org/apache/impala/service/IcebergRestDmlOperationTest.java:

https://gerrit.cloudera.org/#/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.
I think this test still has some value, with a minimal amount of extra build 
time, can we keep it?


https://gerrit.cloudera.org/#/c/25167/2/tests/custom_cluster/test_iceberg_rest_catalog.py
File tests/custom_cluster/test_iceberg_rest_catalog.py:

https://gerrit.cloudera.org/#/c/25167/2/tests/custom_cluster/test_iceberg_rest_catalog.py@680
PS2, Line 680:
             :     # The REST catalog did apply the commit, only its response 
was lost.
             :     assert self.proxy.dropped_responses == [200]
             :     # The files written by the UPDATE are kept.
             :     assert set(filesystem_client.ls(data_path)) - files_befor
> We should not log these
Done



--
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: comment
Gerrit-Change-Id: I472f1d3a1cf5ce269ce82a89fbada8acabcd14fd
Gerrit-Change-Number: 25167
Gerrit-PatchSet: 5
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]>
Gerrit-Comment-Date: Tue, 03 Nov 2026 13:51:01 +0000
Gerrit-HasComments: Yes

Reply via email to