On Wed, 08 Mar 2023 14:41:28 +0100 Morten Brekkevold morten.brekkevold@sikt.no wrote:
But it's hard for us to imagine why `alert_type` is None here, as there is only one code path that posts these events, and AFAIK it always sets this value.
I believe Johanna is investigating, so I expect she will follow up with her findings.
No follow-up has been spotted, so here's a quick update from me: We found the problem last week, and it turned out to be a fundamental issue with lack of transactional SQL when events are posted: The event engine will sometimes end up fetching incomplete events from the queue, as not all the variables associated with the event have been committed to the database yet.
See https://github.com/Uninett/nav/pull/2594 for details. Bugfix release is expected later today.