Skip to content
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

fix: Adjusting cluster invoker checks #12139

Merged
merged 3 commits into from
Apr 25, 2023

Conversation

CLFutureX
Copy link
Contributor

@CLFutureX CLFutureX changed the title fix: Adjusting cluster invoker checks (#12138) fix: Adjusting cluster invoker checks Apr 19, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 20, 2023

Codecov Report

Merging #12139 (7a66bb6) into 3.2 (d6f9d8d) will decrease coverage by 0.37%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                3.2   #12139      +/-   ##
============================================
- Coverage     69.94%   69.58%   -0.37%     
+ Complexity      341        2     -339     
============================================
  Files          3403     1593    -1810     
  Lines        159313    65397   -93916     
  Branches      26427     9522   -16905     
============================================
- Hits         111430    45504   -65926     
+ Misses        38216    15511   -22705     
+ Partials       9667     4382    -5285     

see 1852 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

import org.apache.dubbo.rpc.Result;
import org.apache.dubbo.rpc.RpcContext;
import org.apache.dubbo.rpc.RpcInvocation;
import org.apache.dubbo.rpc.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert comma import

@@ -331,6 +331,8 @@ public Result invoke(final Invocation invocation) throws RpcException {

InvocationProfilerUtils.enterDetailProfiler(invocation, () -> "Router route.");
List<Invoker<T>> invokers = list(invocation);

checkInvokers(invokers, invocation);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exception may throws here and will case memory leak of DetailProfiler

@sonarcloud
Copy link

sonarcloud bot commented Apr 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@CLFutureX CLFutureX requested a review from AlbumenJ April 21, 2023 04:01
@AlbumenJ AlbumenJ merged commit 1138b97 into apache:3.2 Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants