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 the bug that resource name displayed in ClusterNode-related command APIs for SphU.entry(method) is incorrect #1078

Merged
merged 1 commit into from
Oct 11, 2019

Conversation

sczyh30
Copy link
Member

@sczyh30 sczyh30 commented Oct 9, 2019

Signed-off-by: Eric Zhao sczyh16@gmail.com

Describe what this PR does / why we need it

Fix the bug that resource name displayed in ClusterNode-related command APIs for SphU.entry(method) is incorrect.

Does this pull request fix one issue?

Fixes #1077

Describe how you did it

Return the original method name directly in getShowName() of MethodResourceWrapper, since the truncated name seems useless.

Describe how to verify it

Try SphU.entry(method) and see the display name via tree command API.

Special notes for reviews

NONE.

…pper

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
@sczyh30 sczyh30 added the to-review To review label Oct 9, 2019
@sczyh30 sczyh30 added this to the 1.7.0 milestone Oct 9, 2019
@sczyh30 sczyh30 requested a review from cdfive October 9, 2019 14:24
@codecov-io
Copy link

Codecov Report

Merging #1078 into master will increase coverage by 0.07%.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #1078      +/-   ##
============================================
+ Coverage     42.98%   43.05%   +0.07%     
- Complexity     1492     1493       +1     
============================================
  Files           317      317              
  Lines          9320     9320              
  Branches       1272     1272              
============================================
+ Hits           4006     4013       +7     
+ Misses         4819     4815       -4     
+ Partials        495      492       -3
Impacted Files Coverage Δ Complexity Δ
.../csp/sentinel/slotchain/MethodResourceWrapper.java 77.77% <0%> (ø) 3 <0> (ø) ⬇️
...a/csp/sentinel/slots/statistic/base/LeapArray.java 70.29% <0%> (+2.97%) 34% <0%> (+1%) ⬆️
...p/sentinel/datasource/consul/ConsulDataSource.java 69.56% <0%> (+4.34%) 7% <0%> (ø) ⬇️
...ava/com/alibaba/csp/sentinel/node/ClusterNode.java 100% <0%> (+4.76%) 8% <0%> (+1%) ⬆️

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 cdd8d6f...10bc8d5. Read the comment docs.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM

@sczyh30 sczyh30 merged commit 826447b into alibaba:master Oct 11, 2019
@sczyh30 sczyh30 deleted the fix-1077-20191009 branch October 11, 2019 07:15
@sczyh30 sczyh30 removed the to-review To review label Oct 11, 2019
hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
…nd APIs for SphU.entry(method) is incorrect (alibaba#1078)

Signed-off-by: Eric Zhao <sczyh16@gmail.com>
CST11021 pushed a commit to CST11021/Sentinel that referenced this pull request Nov 3, 2021
…ey don't copy the tool.yml file to related fold and AclEnable flag is closed. (alibaba#1079)

* [issue#1078]fix User can't use mqadmin command normally if they don't copy the tool.yml file to their related fold and AclEnable flag is closed.
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.

Wrong resource name in ClusterNode-related commands for SphU.entry(method)
2 participants