druidry
druidry copied to clipboard
change DruidJerseyClient to thread-safe
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.