JingsongLi commented on code in PR #1454:
URL: https://github.com/apache/paimon-rust/pull/1454#discussion_r4662376742


##########
crates/paimon/src/table/table_commit.rs:
##########
@@ -1310,6 +1336,11 @@ impl TableCommit {
             Ok(outcome)
         }
         .await;
+        if !automatic_outputs_published && !publication_uncertain {

Review Comment:
   **[P1] Confirm this attempt is unpublished before deleting compaction files**
   
   The new REST test covers a server that publishes COMPACT and then returns 
`{"success":false}`. I kept that response and set `commit.max-retries=0`. The 
server published snapshot 3, but the retry limit is checked before duplicate 
detection can mark the private outputs as published. Cleanup deleted the 
Parquet file. `filter_and_commit_with_identifier` then returned success for the 
same commit, and a table scan failed with `NotFound` on that file.
   
   With a primary-key DV table and retries enabled, I compacted a 1,000-row 
run, updated key 42, and used the same REST response for the automatic 
compaction. The writer returned success. The published index manifest 
referenced a missing DV container because `try_commit_once` deleted it on the 
false response before duplicate detection.
   
   Please verify that the stored snapshot belongs to a different attempt before 
deleting either data or attempt-generated DV files. Do that check before 
exhausting the retry budget, and retain the files if publication remains 
uncertain.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to