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
TLS reloading will produce NPE while getChannel with multiple threads.
getChannel
// Test getChannel concurrently factory = new ChannelFactory(v, v, v, v, caPath, clientCertPath, clientKeyPath); List<Thread> tasks = new ArrayList<>(8); for (int i = 0; i < 8; i++) { ChannelFactory finalFactory = factory; Thread t = new Thread(() -> finalFactory.getChannel("127.0.0.1:2379", mapping)); t.start(); tasks.add(t); } for (Thread t : tasks) { t.join(); }
Panic
Test pass
The text was updated successfully, but these errors were encountered:
[close #596] fix tls reloading encouter slow thread npe (#597)
774ee50
Successfully merging a pull request may close this issue.
Bug Report
1. Describe the bug
TLS reloading will produce NPE while
getChannel
with multiple threads.2. Minimal reproduce step (Required)
3. What did you see instead (Required)
Panic
4. What did you expect to see? (Required)
Test pass
5. What are your Java Client and TiKV versions? (Required)
The text was updated successfully, but these errors were encountered: