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 DefaultFuture turn off exception logging optimization for Channel… #8739

Closed
wants to merge 0 commits into from

Conversation

stone-98
Copy link
Contributor

@stone-98 stone-98 commented Sep 9, 2021

What is the purpose of the change

fix #8695 on 3.0

Brief changelog

DefaultFuture turn off logging optimization for Channel.

Verifying this change

@codecov-commenter
Copy link

Codecov Report

Merging #8739 (1611a9e) into 3.0 (13c15fd) will decrease coverage by 0.15%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##                3.0    #8739      +/-   ##
============================================
- Coverage     63.71%   63.55%   -0.16%     
+ Complexity      313      312       -1     
============================================
  Files          1145     1145              
  Lines         48183    48137      -46     
  Branches       7255     7220      -35     
============================================
- Hits          30698    30593     -105     
- Misses        14115    14167      +52     
- Partials       3370     3377       +7     
Impacted Files Coverage Δ
...dubbo/remoting/exchange/support/DefaultFuture.java 89.09% <100.00%> (-0.39%) ⬇️
...ng/transport/dispatcher/all/AllChannelHandler.java 68.96% <0.00%> (-20.69%) ⬇️
...ng/transport/dispatcher/WrappedChannelHandler.java 43.47% <0.00%> (-15.22%) ⬇️
...ache/dubbo/remoting/transport/AbstractChannel.java 75.00% <0.00%> (-12.50%) ⬇️
...ubbo/registry/client/AbstractServiceDiscovery.java 87.50% <0.00%> (-12.50%) ⬇️
...dubbo/common/status/support/LoadStatusChecker.java 50.00% <0.00%> (-11.54%) ⬇️
...moting/transport/netty4/NettyEventLoopFactory.java 22.22% <0.00%> (-7.78%) ⬇️
...mmon/threadpool/support/fixed/FixedThreadPool.java 80.00% <0.00%> (-7.50%) ⬇️
...ache/dubbo/remoting/api/NettyEventLoopFactory.java 30.00% <0.00%> (-6.37%) ⬇️
.../threadpool/support/limited/LimitedThreadPool.java 83.33% <0.00%> (-5.56%) ⬇️
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 13c15fd...1611a9e. Read the comment docs.

+ " -> " + channel.getRemoteAddress();
}

private Request getRequestWithoutData() {
private static Request rinseRequestData(Request request) {
Copy link
Member

Choose a reason for hiding this comment

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

Here maintain original method name, rinseRequestData sounds like do some operation for request.

+ " -> " + channel.getRemoteAddress();
}

private Request getRequestWithoutData() {
private static Request rinseRequestData(Request request) {
Request newRequest = request.copy();
Copy link
Member

Choose a reason for hiding this comment

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

And here we can optimize the logic. Add new method copy without data method in Request, avoid to copy data.

@stone-98
Copy link
Contributor Author

@horizonzy I recommitted and found that there were redundant commit records, so "reset head" caused it to close,I have now resubmitted a PR,link:#8775

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.

None yet

3 participants