JingsongLi opened a new pull request, #8869:
URL: https://github.com/apache/paimon/pull/8869

   ## Purpose
   
   Make `LocalKvDb` flush failure-safe.
   
   ## Changes
   
   - Keep the memtable intact until the SST has been written and published to 
level 0.
   - Remove an incomplete SST when writing or closing the writer fails.
   - Add a regression test that injects a flush failure and verifies that reads 
and a later retry still succeed.
   
   ## Verification
   
   - `mvn -q -pl paimon-common -Pfast-build -DwildcardSuites=none 
'-Dtest=LocalKvDbTest#testFlushFailureKeepsMemTableForRetry+testFlushToSst+testCloseFlushesMemTable'
 test`
   - `mvn -q -pl paimon-common spotless:check -DskipTests`
   - `mvn -q -pl paimon-common -DskipTests compile`
   


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