SirMin commented on pull request #6359:
URL: https://github.com/apache/shardingsphere/pull/6359#issuecomment-659969854


   Hi @tristaZero HintManager's getInstance is thread safe beacuse the instance 
put to ThreadLocal,  in different threads  will not get the same instance.
   
   The connection will be managed by most frameworks. If it is too costly to 
manage the HintManager like a connection, and we must clear it after setting up 
the HintManager, otherwise the next call will report an exception, so I cannot 
see the modification to get The HintManager held by the current thread has any 
bad


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to