-
Notifications
You must be signed in to change notification settings - Fork 26.3k
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
When making a generic dubbo service request, setting check to true co… #7599
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7599 +/- ##
============================================
+ Coverage 58.67% 59.12% +0.45%
- Complexity 494 530 +36
============================================
Files 1076 1076
Lines 43421 43444 +23
Branches 6341 6346 +5
============================================
+ Hits 25477 25687 +210
+ Misses 15110 14930 -180
+ Partials 2834 2827 -7 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consumerUrl can be accessed in the subclass, so we don’t need to define another method. do you think so ?
In addition, can you help verify whether the memory leak problem will occur under non-generalized calls? I checked the code, and the non-generalized calls to unsubscribe should also have this problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…uld cause memory leaks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…uld cause memory leaks (apache#7599)
当多次泛化调用一个上游接口的时候,当你填写的check=true并且此时上游调用不通(服务下线,或者你的代码是网关,并没有填对group或者version),就会触发内存泄露.内存泄露的同时还会触发大量的notify(有的时候这个更可怕一些)
测试代码
修改代码后