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

   ### Purpose
   
   Opening a primary-key snapshot diff can leak the old-snapshot reader when 
opening the new-snapshot reader throws an `IOException`. The caller never 
receives a reader to close.
   
   Create the endpoint readers through the existing `MergeSorter` supplier loop 
so its failure cleanup owns both readers as they open.
   
   Fixes #11259
   
   ### Tests
   
   A real-table Parquet regression injects an input-open failure after writes 
and full compaction. On unchanged master, the second-reader failure leaves an 
input stream open; first-reader failure and normal read/close controls pass. 
All three cases pass with the fix.
   
   All 16 selected lifecycle, timestamp-incremental and audit-log tests pass on 
JDK 11 with normal Maven `verify`, including Checkstyle, Spotless, Enforcer, 
and RAT.
   


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