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 NPE when update ParamFlowRule before the resource has been requested once #1901

Merged
merged 1 commit into from
Dec 18, 2020

Conversation

brotherlu-xcq
Copy link
Collaborator

Describe what this PR does / why we need it

fix issue: #1895

Does this pull request fix one issue?

fix #1895

Describe how you did it

just add a judge to if the ParameterMetric is null before clear the ParamFlowRule

Describe how to verify it

run com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRuleManagerTest#testLoadParamRulesWithNoMetric to check whether the new value is set

Special notes for reviews

fix issue: alibaba#1895
Does this pull request fix one issue?
fix alibaba#1895
Describe how you did it
just add a judge to if the ParameterMetric is null
Describe how to verify it
run com.alibaba.csp.sentinel.slots.block.flow.param.ParamFlowRuleManagerTest#testLoadParamRulesWithNoMetric to check whether the new value is be set
Special notes for reviews
@CLAassistant
Copy link

CLAassistant commented Dec 15, 2020

CLA assistant check
All committers have signed the CLA.

@sczyh30 sczyh30 added kind/bug Category issues or prs related to bug. area/hotspot-param-flow Issues or PRs related to "hot-spot" param flow control labels Dec 18, 2020
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 70b457b into alibaba:master Dec 18, 2020
@sczyh30
Copy link
Member

sczyh30 commented Dec 18, 2020

Thanks for contributing and look forward to more!

hughpearse pushed a commit to hughpearse/Sentinel that referenced this pull request Jun 2, 2021
CST11021 pushed a commit to CST11021/Sentinel that referenced this pull request Nov 3, 2021
…roker 4.7.0

fix(broker):fix bug sending request message using broker 4.7.0 (alibaba#1902)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hotspot-param-flow Issues or PRs related to "hot-spot" param flow control kind/bug Category issues or prs related to bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NPE when update ParamFlowRule before the resource has been requested once
3 participants