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

LogSlot处理BlockException异常问题 | LogSlot NPE when recording BlockException #3057

Closed
liwen2555376 opened this issue Mar 12, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists kind/bug Category issues or prs related to bug.

Comments

@liwen2555376
Copy link

liwen2555376 commented Mar 12, 2023

SystemRuleManager checkSystem 的时候会抛出 throw new SystemBlockException(resourceWrapper.getName(), "cpu"); 异常。然后在LogSlot 里会处理 BlockException 异常。但是抛出的SystemBlockException 并没有设置 rule 属性。导致空指针异常。
image
image
image

抛出的异常,并没有设置 rule 属性

@sczyh30 sczyh30 added duplicate This issue or pull request already exists kind/bug Category issues or prs related to bug. labels Mar 13, 2023
@sczyh30
Copy link
Member

sczyh30 commented Mar 13, 2023

This has been fixed via #2980 and will be released in 2.0.0. You may try v2.0.0-alpha.

@sczyh30 sczyh30 changed the title LogSlot处理BlockException异常问题 LogSlot处理BlockException异常问题 | LogSlot NPE when recording BlockException Mar 13, 2023
@bchengwang
Copy link

这已经通过#2980修复,并将在2.0.0中发布。您可以尝试v2.0.0-alpha

请问这个补丁会在1.8.6的版本上合并吗?目前Spring Cloud Alibaba2022 和 2021使用的都是 1.8.6版本的Sentinel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists kind/bug Category issues or prs related to bug.
Projects
None yet
Development

No branches or pull requests

3 participants