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

   ### Purpose
   
   Fixes #9916
   
   `DataVectorWriter` and `DedicatedFormatWriter` can leave a normal data file 
behind if writing succeeds but a later step, such as reading the file size, 
fails before returning its metadata.
   
   Wrap normal-file output and metadata creation in `try/except`. On failure, 
call `delete_quietly` for the current file and re-raise the original exception.
   
   ### Tests
   
   Add one regression test covering both writers: write a real Parquet file, 
fail while reading its size, and assert that no Parquet file remains. Both 
cases fail on the base revision and pass with the fix.
   
   The new regression and existing composite flush/shared-shredding tests 
passed (10 test methods). Flake8 and whitespace checks passed with Python 
3.12.6 / PyArrow 19.0.1.
   


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