dengzhhu653 commented on PR #5771:
URL: https://github.com/apache/hive/pull/5771#issuecomment-3017537820

   @ngsg 
   > In the current implementation, method invocations on any MetaStoreClient 
connected to a remote MetaStore are guarded by a synchronized block, as in your 
example. Therefore, I think MetaStoreClient with non-embeded MetaStore is 
thread-safe.
   
   My idea is to make the client thread-safe in each lawyer, so the HS2, Spark 
or any other engines don't need to take special caution on this. imaging thrift 
-> B -> A, if we only put the safety guard on A, it doesn't mean the thrift -> 
B is thread safe. 


-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to