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

Don't check the status when syncing a new check #83

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

mikeyyuen
Copy link
Contributor

@mikeyyuen mikeyyuen commented Aug 31, 2020

The status is managed outside of the check itself.

That means when the status is changing due to a failure or recovery of a service it's status may be different than the one in the catalog. Checking status in the update* functions may cause the service to flap during an outage rather then transition cleanly to failing.

This change removes the extra status check in the update* functions.

The status is managed outside of the check itself, and should at times be different
this is very true when a check is going from passing->failing or visa versa.
@lornasong lornasong added the bug label Aug 31, 2020
@lornasong lornasong self-assigned this Sep 2, 2020
Copy link
Member

@lornasong lornasong left a comment

Choose a reason for hiding this comment

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

@mikeyyuen - thanks for fixing this! agree that the status should not be checked when syncing checks and only be when updating the status in catalog

@lornasong lornasong merged commit e90fb90 into hashicorp:master Sep 2, 2020
@lornasong lornasong added this to the 0.5.0 milestone Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants