Skip to content

Conversation

@nilmerg
Copy link
Member

@nilmerg nilmerg commented Jan 21, 2026

Previously, only the second and other subsequent item was updated with redis results. Not sure why this wasn't discovered until recently, as the issue was already part of the initial fix meant for a very similar issue, affecting all items. Hell, maybe because my initial analysis this time also led me into the wrong direction, so when reviewing this, proper testing and result verification is key!

fixes #1318

…urrent item

Previously, only the second and other subsequent item was updated with redis
results. Not sure why this wasn't discovered until recently, as the issue
was already part of the initial fix meant for a very similar issue, affecting
*all* items. Hell, maybe because my initial analysis this time also led me
into the wrong direction, so when reviewing this, proper testing and result
verification is key!

fixes #1318
@nilmerg nilmerg added this to the 1.4.0 milestone Jan 21, 2026
@nilmerg nilmerg self-assigned this Jan 21, 2026
@nilmerg nilmerg added bug Something isn't working area/export Affects exports to other formats labels Jan 21, 2026
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label Jan 21, 2026
Copy link
Contributor

@BastianLedererIcinga BastianLedererIcinga left a comment

Choose a reason for hiding this comment

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

I've tested it on queries for specific hosts and services that haven't had a state change in several weeks, which is how I reproduced the bug previously.
The exported state-output was always up to date with the one shown in the UI, even when exporting right after observing a changed output.
When exporting all Hosts/Services ordered by last_state_change in ascending order, the first element was also up to date.

I also checked some of the subsequent elements and the last element in the larger queries, their output was also up to date.

@nilmerg nilmerg merged commit f70f60b into main Jan 21, 2026
13 checks passed
@nilmerg nilmerg deleted the fix/first-result-of-host-and-service-exports-has-outdated-data-1318 branch January 21, 2026 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/export Affects exports to other formats bug Something isn't working cla/signed CLA is signed by all contributors of a PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filtered Icinga DB Web JSON endpoints return stale data (only updated on state change)

3 participants