zhangyue19921010 opened a new issue, #11365:
URL: https://github.com/apache/paimon/issues/11365

   ### Search before asking
   
   - [x] I searched the issues and found no report of this wholly uncommitted 
recovery case.
   
   ### Paimon version
   
   2.2-SNAPSHOT, commit a743f963bd8ebf06d2a2200b33c2b8c2cba6da32.
   
   ### Compute Engine
   
   Java API, JDK 11.
   
   ### Minimal reproduce step
   
   Create a primary-key table with `id INT, v INT`, primary key `id`, 
`bucket=1`, and `changelog-producer=full-compaction`.
   
   Write `(1, 10)`, run a full compaction, and prepare the stream writer's 
commit messages without committing any snapshot. Remove the changelog file 
returned by `compactIncrement().changelogFiles()`, then recover the messages 
with `StreamTableCommit.filterAndCommit`.
   
   `CompactionChangelogRecoveryTest` exercises this with a real table, writer, 
compaction output, and filesystem deletion.
   
   ### What doesn't meet your expectations?
   
   Recovery returns normally even though the new compaction changelog file is 
missing. It should fail before publishing snapshots, as it already does for 
missing new data files.
   
   `TableCommitImpl.checkFilesExistence` collects compacted data and index 
outputs but omits compaction changelog outputs.
   
   ### Anything else?
   
   This concerns a wholly uncommitted identifier. It is separate from 
#11102/#10568, which recover a compaction after an earlier snapshot for the 
identifier has already been committed.
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!
   


-- 
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