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

   ### Purpose
   
   #9227 made `AbstractFileStoreWrite.close()` close every writer and shut down 
its executors before rethrowing the first writer failure. The subclasses above 
it still call `super.close()` first and release their own resources afterwards, 
so that rethrown failure skips:
   
   - `MemoryFileStoreWrite`: the writer buffer metric group
   - `BaseAppendFileStoreWrite`: the blob fetch metrics
   - `KeyValueFileStoreWrite`: the compact manager factory, whose `close()` 
invalidates the lookup file cache
   
   These classes back both append-only and primary-key tables.
   
   ### What changes
   
   Close the parent and the subclass resource with `IOUtils.closeAll`, the 
helper #9227 uses. The first failure is rethrown with later ones attached as 
suppressed. An `Error` still propagates immediately.
   
   ### Tests
   
   `AbstractFileStoreWriteCloseTest` adds an append-only and a primary-key case 
in which a writer fails to close. Both fail on master because the outer cleanup 
never runs, and both pass with the fix. Reverting any one of the three classes 
fails its case. `BucketedAppendFileStoreWriteTest` and 
`KeyValueFileStoreWriteTest` pass; spotless and checkstyle are clean.
   
   ### API and Format
   
   No change.


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