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

Refine the semantics of StatSlot onComplete #215

Merged
merged 2 commits into from
Aug 27, 2020

Conversation

louyuting
Copy link
Collaborator

Describe what this PR does / why we need it

Make StatSlot.OnCompleted sense

Does this pull request fix one issue?

Describe how you did it

Describe how to verify it

Ut

Special notes for reviews

@louyuting louyuting requested a review from sczyh30 August 26, 2020 14:28
for _, s := range sc.stats {
// The OnCompleted is called only when entry passed
if ctx.IsBlocked() {
Copy link
Member

Choose a reason for hiding this comment

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

Maybe just checking it outside is better?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

make sense

@codecov-commenter
Copy link

codecov-commenter commented Aug 26, 2020

Codecov Report

Merging #215 into master will increase coverage by 0.16%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #215      +/-   ##
==========================================
+ Coverage   42.41%   42.58%   +0.16%     
==========================================
  Files          82       82              
  Lines        4406     4405       -1     
==========================================
+ Hits         1869     1876       +7     
+ Misses       2297     2289       -8     
  Partials      240      240              
Impacted Files Coverage Δ
core/circuitbreaker/stat_slot.go 0.00% <ø> (ø)
core/hotspot/concurrency_stat_slot.go 0.00% <ø> (ø)
core/stat/stat_slot.go 0.00% <ø> (ø)
core/base/slot_chain.go 97.61% <100.00%> (+0.15%) ⬆️
core/base/context.go 54.54% <0.00%> (+4.54%) ⬆️

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 461e21b...384341b. Read the comment docs.

Copy link
Member

@sczyh30 sczyh30 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 750aefb into alibaba:master Aug 27, 2020
@sczyh30
Copy link
Member

sczyh30 commented Aug 27, 2020

Thanks for contributing!

@sczyh30 sczyh30 changed the title Make StatSlot.OnCompleted sense Refine the semantics of StatSlot onComplete Aug 27, 2020
@sczyh30 sczyh30 added the kind/enhancement Category issues or PRs related to enhancement label Aug 27, 2020
@louyuting louyuting added this to the 0.6.0 milestone Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or PRs related to enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants