-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
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
[BUG]CredentialWatcher中的timer不能被关闭 #4631
Comments
I will fix it. Thanks for your report. |
@horizonzy 你这个PR还是关不了,这个timer写法有点问题,等哈我顺手再提个 |
嗯,了解了。 |
看看新的提交。 |
这样可以的,你的速度可真快0.0 |
要不把timer改成 ScheduledThreadPoolExecutor?? |
可行。可以单独再提一个PR来进行优化,欢迎贡献哦 |
…4635) * fix(CredentialWatcher): 使用ScheduledThreadPoolExecutor替代Timer * enhance(CredentialWatcher): use ExecutorFactory replace ScheduledThreadPoolExecutor. * enhance(CredentialWatcher): use ExecutorFactory.Managed replace ExecutorFactory. * enhance(CredentialWatcher): remove Managed
我觉得nacos里面的各种线程池可以集中管理起来,但是在weblogic里面呢,又不能通过hook的方式进行关闭,有点蛋疼。 |
…op-import-v1 * 'develop' of https://github.com/alibaba/nacos: naming push service support CSharp client (alibaba#4670) remove final [ISSUE-alibaba#3880] NamingService Client support pushEmptyProtection. (alibaba#4665) [ISSUE-alibaba#4631] Free credential instance when serverHttpAgent shutdown. (alibaba#4634) Add CSharp Client Just choose one between nacosDomain mode and servers mode. upgrade axios version to 0.21.1 (alibaba#4632) [ISSUE-alibaba#4631] Remove timer,Use ScheduledThreadPoolExecutor replaced. (alibaba#4635) fix: fix jraft response instance (alibaba#4644) For alibaba#4291, support remove old raft metadata change tokenValidityInSeconds default value remove JwtTokenUtils
nacos/client/src/main/java/com/alibaba/nacos/client/identify/CredentialWatcher.java
Line 59 in 4da3c82
问题
The text was updated successfully, but these errors were encountered: