Skip to content

Kqueue: Delay removal from registration map to fix noisy warnings (#1…#15293

Merged
normanmaurer merged 1 commit into4.1from
kqueue_delay_41
May 30, 2025
Merged

Kqueue: Delay removal from registration map to fix noisy warnings (#1…#15293
normanmaurer merged 1 commit into4.1from
kqueue_delay_41

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

…5279)

Motivation:

In Kqueue it sometimes happened that we did see a WARN that the registration for a given id could not be found. The reason for this was that it is possible that the registration was already be cancelled by the user and so not present anymore. In this case the logs are harmless but still confusing. We should better ensure we handle it better.

Modifications:

When the user cancels a registration just mark it as cancelled and remove it from the map one all events are processed.

Result:

Less confusing logging and more correct handling of cancelled registrations

…5279)

Motivation:

In Kqueue it sometimes happened that we did see a WARN that the
registration for a given id could not be found. The reason for this was
that it is possible that the registration was already be cancelled by
the user and so not present anymore. In this case the logs are harmless
but still confusing. We should better ensure we handle it better.

Modifications:

When the user cancels a registration just mark it as cancelled and
remove it from the map one all events are processed.

Result:

Less confusing logging and more correct handling of cancelled
registrations
@normanmaurer normanmaurer added this to the 4.1.122.Final milestone May 30, 2025
@normanmaurer normanmaurer requested a review from chrisvest May 30, 2025 09:19
@normanmaurer
Copy link
Copy Markdown
Member Author

/cc @daschl

@normanmaurer
Copy link
Copy Markdown
Member Author

This is a back port of the fix that we did in 4.2

@normanmaurer normanmaurer merged commit 2d395dd into 4.1 May 30, 2025
28 of 30 checks passed
@normanmaurer normanmaurer deleted the kqueue_delay_41 branch May 30, 2025 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants