yyqdbngt opened a new pull request, #3414: URL: https://github.com/apache/rocketmq-dashboard/pull/3414
### Summary `AlertCorrelationScope.matches` decides whether two system alerts belong to the same correlation scope by comparing the instance id and a fixed set of resource labels. It had no tests. ### Changes - Same instance with equal resource labels matches; different instances do not - A source alert without an instance id never matches - Conflicting resource labels reject, while blank or absent labels are ignored - Non-resource labels and surrounding whitespace do not affect the decision ### Testing `mvn test -Dtest=AlertCorrelationScopeTest` passes: 7 tests, 0 failures (first test for this class). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
