Skip to content

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

@liwen2555376

Description

@liwen2555376

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already existskind/bugCategory issues or prs related to bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions