liming30 opened a new pull request, #1116:
URL: https://github.com/apache/incubator-paimon/pull/1116

   Fix #833 
   
   ### Purpose
   
   When an exception occurs in the `readBatch` of the `RecordReader`,  the 
`close` of `LoserTree` may be the second time to close the `iterator`. 
   
   solution: reset the `iterator` in `loserTree` to `null` after `releaseBatch`.
   
   ### Tests
   
   Added unit test 
`org.apache.paimon.mergetree.compact#testLoserTreeCloseNormally` to verify that 
the `close` of `LoserTree` is normal.
   
   ### API and Format
   
   No
   
   ### Documentation
   
   No
   


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