szehon-ho commented on issue #5371:
URL: https://github.com/apache/iceberg/issues/5371#issuecomment-1197229658

   Yea to sum up, these are the options:
   
   1.  Implement a counter  for each ClientPool, that is incremented at 
beginning of ClientPool::run() call, and decremented at the end.  The close() 
thread will block until counter is 0.
   
   2.  Implement a retry mechanism in CachedClientPool::run(), which will call 
call clientPool() again if we hit a closed client.
   
   


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