We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The connect() and close() methods in DruidJerseyClient class are not thread-safe which will throw an exception in a multi-threaded environment.
The text was updated successfully, but these errors were encountered:
Is there a solution? I get a problem, the DruidResponse cannot be resolved, and how to deal with it?
Sorry, something went wrong.
@Robinub You can use ThreadLocal in DruidJerseyClient class, please refer to this PR.
Or you can call connect() method when the application starts and close() method when the application exits.
@SpringBootApplication public class MyApplication { @Autowired private DruidClient druidClient; @PostConstruct public void init() throws ConnectionException { druidClient.connect(); } @PreDestroy public void destroy() throws ConnectionException { druidClient.close(); } public static void main(String[] args) { SpringApplication.run(MyApplication .class, args); } }
the DruidResponse cannot be resolved, Can you provide more detailed error information?
the DruidResponse cannot be resolved
@ethendev Thank you! The DruidResponse class is not created in the jar file, but now I use the HashMap to receive the results of querying instead.
No branches or pull requests
The connect() and close() methods in DruidJerseyClient class are not thread-safe which will throw an exception in a multi-threaded environment.
The text was updated successfully, but these errors were encountered: