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

[Heartbeat] Disabled monitors in static monitor list cause crash #27599

Closed
andrewvc opened this issue Aug 26, 2021 · 1 comment · Fixed by #27615
Closed

[Heartbeat] Disabled monitors in static monitor list cause crash #27599

andrewvc opened this issue Aug 26, 2021 · 1 comment · Fixed by #27615
Assignees
Labels
blocker bug Heartbeat needs_team Indicates that the issue/PR needs a Team:* label v7.15.0

Comments

@andrewvc
Copy link
Contributor

The default config which has an entry with enabled: false for a monitor now crashes heartbeat since refactoring in #27535 . This should be a simple fix.

@andrewvc andrewvc self-assigned this Aug 26, 2021
@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Aug 26, 2021
@botelastic
Copy link

botelastic bot commented Aug 26, 2021

This issue doesn't have a Team:<team> label.

andrewvc added a commit to andrewvc/beats that referenced this issue Aug 26, 2021
Fixes elastic#27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.
andrewvc added a commit that referenced this issue Aug 26, 2021
Fixes #27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.
mergify bot pushed a commit that referenced this issue Aug 26, 2021
Fixes #27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.

(cherry picked from commit 9a517a7)
mergify bot pushed a commit that referenced this issue Aug 26, 2021
Fixes #27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.

(cherry picked from commit 9a517a7)
andrewvc added a commit that referenced this issue Aug 26, 2021
Fixes #27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.

(cherry picked from commit 9a517a7)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
andrewvc added a commit that referenced this issue Aug 26, 2021
Fixes #27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.

(cherry picked from commit 9a517a7)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
Icedroid pushed a commit to Icedroid/beats that referenced this issue Nov 1, 2021
Fixes elastic#27599

This properly handles skipped monitors, and also fixes the broken test
for this.

Additionally, this switches to the go1.3+ way of handling error
hierarchies in `heartbeat.go` using `errors.Is`. It also cleans up the code by no longer
making a disabled config an `error` when parsing stdfields. It's now
only an error when detected in `monitor.go` which is cleaner.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Heartbeat needs_team Indicates that the issue/PR needs a Team:* label v7.15.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant