druidry icon indicating copy to clipboard operation
druidry copied to clipboard

change DruidJerseyClient to thread-safe

Open ethendev opened this issue 5 years ago • 0 comments

The connect() and close() methods in DruidJerseyClient class are not thread-safe, the query() method may throw an exception in a multi-threaded environment. 截图

I modified client with ThreadLocal, which is thread-safe in a multithreaded environment.

ethendev avatar Jun 10 '19 14:06 ethendev