Prevent the RpcClient cleanup thread from cleaning up the client object that is about to be used#76
Prevent the RpcClient cleanup thread from cleaning up the client object that is about to be used#76eric-zc1 wants to merge 1 commit intotrpc-group:masterfrom
Conversation
eric-zc1
commented
Jan 14, 2025
- RpcClient超时时间日志问题修复
- RpcClientProxy的lastUsedNanos使volatile,避免多线程可见性不一致;
- 使用ConcurrentMap的compute,在返回之前updateLastUsedNanos,保证其他线程get的时候拿到的是都是已经更新过最后使用时间的
2. RpcClientProxy的lastUsedNanos使volatile,避免多线程可见性不一致; 3. 使用ConcurrentMap的compute,在返回之前updateLastUsedNanos,保证其他线程get的时候拿到的是都是已经更新过最后使用时间的
|
I have read the CLA Document and I hereby sign the CLA ericzcwang seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #76 +/- ##
=====================================================
- Coverage 70.13739% 70.09821% -0.03919%
+ Complexity 4240 4235 -5
=====================================================
Files 437 437
Lines 17105 17106 +1
Branches 1727 1727
=====================================================
- Hits 11997 11991 -6
- Misses 3992 3997 +5
- Partials 1116 1118 +2
|
|
I have read the CLA Document and I hereby sign the CLA |