terrymanu commented on issue #1620: what is the lifecycle of hint
URL: 
https://github.com/apache/incubator-shardingsphere/issues/1620#issuecomment-464759910
 
 
   > the point is connection don't close when it is managed by pool, and then 
thread isn't clear, hints is keeped in thread local,so hints is not clear.
   
   Sharding-JDBC do not care the connection is closed or hold by pool, it just 
care the connection is closed logically.
   When user call `close` method, Sharding-JDBC will call `close` method of all 
data sources which it managed(for pool, it returned to pool; for raw jdbc, it 
closed, but it doesn't matter), the thread local is cleared.
   So, any problem here? Or can you provide a example and paste github link 
here?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to