Skip to content

Disallow triggering a cancelled downtime #9935

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

Al2Klimov
Copy link
Member

The optional part of

which adds some locking which isn't trivial, especially in Icinga 2. 😢

SetRemovalInfo() and Deactivate() already lock themselves like this.
The latter calls Stop() which also runs Icinga DB hooks while being locked.
This prevents trigger and remove events from malforming each other.
Especially Downtimes don't get cancelled during triggering.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/icingadb New backend area/livestatus Legacy interface bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant