fengguangyuan opened a new issue #3336:
URL: https://github.com/apache/iceberg/issues/3336


   # What's the problem?
   In our practices of overwriting partitions with HiveCatalog, we have more 
than  `CLIENT_POOL_SIZE_DEFAULT` threads running on `ClientPool`, no doubts the 
committing snapshot thread may waiting on the client pool, in which it is 
possible to lead to hive table lock leak, if it's interrupted at this moment.
   
   In such case, we need to have the bests efforts to release the lock.
   
   # Affected code?
   ``HiveTableOperations.java`
   ```java
     @VisibleForTesting
     void doUnlock(long lockId) throws TException, InterruptedException {
           released = metaClients.run(client -> {
             client.unlock(lockId);
             return null;
           });
     }
   ```
   
   # How to re-produce?
   Have more than `CLIENT_POOL_SIZE_DEFAULT` threads to do commit, and make the 
threads interrupted.
   


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



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to