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

[bug]fix the monitor status is abnormal #2070

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

Yanshuming1
Copy link
Member

fix the monitor status is abnormal

@tomsun28 tomsun28 added the good first pull request Good for newcomers label Jun 8, 2024
@tomsun28
Copy link
Contributor

fix #2062

@tomsun28
Copy link
Contributor

hi, this relates the common alarm part. Please wait that we need time to conduct a detailed test, review.

@tomsun28 tomsun28 added this to the 1.6.1 milestone Jun 17, 2024
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

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

👍 lgtm!

Comment on lines +58 to +59
if ((currentAlert.getTags() != null && currentAlert.getTags().containsKey(CommonConstants.IGNORE))
|| currentAlert.getStatus() == CommonConstants.ALERT_STATUS_CODE_RESTORED) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if ((currentAlert.getTags() != null && currentAlert.getTags().containsKey(CommonConstants.IGNORE))
|| currentAlert.getStatus() == CommonConstants.ALERT_STATUS_CODE_RESTORED) {
if (currentAlert.getStatus() == CommonConstants.ALERT_STATUS_CODE_RESTORED) {

status always is the ALERT_STATUS_CODE_RESTORED when tags has CommonConstants.IGNORE

Copy link
Member Author

Choose a reason for hiding this comment

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

In both cases, the data in the map needs to be deleted,if remove (|| currentAlert . getStatus () == CommonConstants . ALERT_STATUS_CODE_RESTORED ),So when the label is not IGNORE,Unable to clear cache

@tomsun28 tomsun28 merged commit 1341110 into apache:master Jun 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

If N monitors are deployed on the same ip address, the task status is abnormal
2 participants