Skip to content

[Backport support/2.16] Fix high response latency with multiple API-requests targeting non-existent hosts or services#10928

Merged
jschmidt-icinga merged 4 commits into
support/2.16from
backport-10883-to-support/2.16
Jul 6, 2026
Merged

[Backport support/2.16] Fix high response latency with multiple API-requests targeting non-existent hosts or services#10928
jschmidt-icinga merged 4 commits into
support/2.16from
backport-10883-to-support/2.16

Conversation

@jschmidt-icinga

Copy link
Copy Markdown
Contributor

Manual backport of #10883 to support/2.16 due to a merge conflict in lib/perfdata/opentsdbwriter.cpp because of the removed workqueue.

This was likely meant as a fallback for non-`std::exception`
exception pointers, but it would never have been reached, because
`(std|boost)::rethrow_exception()` would have thrown those out of
the function scope.

This fixes the fallback by making it a catch handler and also using
the more direct way of getting this fallback diagnostic info inside
a catch handler.

(cherry picked from commit aa6c63b)
`DiagnosticInformation()` wasn't able to take a `std::exception_ptr` due
to the missing conversion on older boost versions, so now everything uses
the std::exception_ptr instead. There are still a few reasons to use
`boost::exception` in some places, but for exception pointers, the standard
one should be better in most cases and almost never requires to include an
extra header.

(cherry picked from commit 393724b)
The `diagnostic_information` string will now generated if and
when it is required (i.e. the "verbose" parameter is true).

(cherry picked from commit 171e9ee)
@cla-bot cla-bot Bot added the cla/signed label Jul 3, 2026
@jschmidt-icinga jschmidt-icinga added the bug Something isn't working label Jul 3, 2026
@jschmidt-icinga jschmidt-icinga added this to the 2.16.4 milestone Jul 3, 2026
@jschmidt-icinga jschmidt-icinga merged commit 2477743 into support/2.16 Jul 6, 2026
32 checks passed
@jschmidt-icinga jschmidt-icinga deleted the backport-10883-to-support/2.16 branch July 6, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants