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

IcingaDB#SerializeState(): limit execution_time and latency to 2^32-1 #10060

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

Al2Klimov
Copy link
Member

not to write higher values into Redis than the Icinga DB schema can hold. This fixes yet another potential Go daemon crash.

ref/IP/53518

CC @RincewindsHat

@Al2Klimov Al2Klimov added bug Something isn't working area/icingadb New backend ref/IP labels May 14, 2024
@cla-bot cla-bot bot added the cla/signed label May 14, 2024
@Al2Klimov Al2Klimov force-pushed the IcingaDB-SerializeState-execution_time-latency branch from 3cc3b4e to 3318871 Compare May 15, 2024 09:55
not to write higher values into Redis than the Icinga DB schema can hold.
This fixes yet another potential Go daemon crash.
Copy link
Contributor

@julianbrost julianbrost left a comment

Choose a reason for hiding this comment

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

Can be tested by submitting a passive check result that triggers a state change and a execution_end more than $2^{32}$ milliseconds in the future (date +%s -d +100days) and no execution_start to test the case for execution_latency. The other case can be tested by just setting execution_end to the same value.

@Al2Klimov Al2Klimov added this to the 2.15.0 milestone Jun 12, 2024
@Al2Klimov Al2Klimov merged commit f1be9b7 into master Jun 13, 2024
26 checks passed
@Al2Klimov Al2Klimov deleted the IcingaDB-SerializeState-execution_time-latency branch June 13, 2024 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/icingadb New backend bug Something isn't working cla/signed ref/IP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants