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

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/paimon/issues) 
and found nothing similar.
   
   
   ### Paimon version
   
   paimon-0.8
   
   ### Compute Engine
   
   flink 1.17
   
   ### Minimal reproduce step
   
   In 
https://github.com/apache/paimon/blob/master/paimon-core/src/main/java/org/apache/paimon/mergetree/compact/ChangelogMergeTreeRewriter.java#L156,
 `iterator` / `compactFileWriter` / `changelogFileWriter` may throw an 
`Exception`, which will cause the file to fail to be closed and cleaned.
   
   ### What doesn't meet your expectations?
   
   We should close `iterator` / `compactFileWriter` / `changelogFileWriter` and 
clean the file when an exception occurs.
   
   ### Anything else?
   
   _No response_
   
   ### 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