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

   ### Purpose
   
   Both Spark truncate paths create a `BatchTableCommit` and never close it:
   
   - `TruncatePaimonTableWithFilterExec.run()` handles `TRUNCATE TABLE` with or
     without a partition spec on the driver.
   - `PaimonSparkTableBase.truncateTable` implements Spark's `TruncatableTable`.
   
   `TableCommitImpl.close()` shuts down the underlying commit and its
   `maintainExecutor` thread pool, so every `TRUNCATE TABLE` leaked a thread 
pool
   on the driver. Both call sites now wrap the commit in try/finally, matching
   `PaimonFormatTable.withCommit` and the other commit call sites in this 
module.
   
   ### Tests
   


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