Skip to content

Prevent allocation loops when LeakPresenceDetector ResourceScope is closed#15768

Merged
normanmaurer merged 1 commit into
4.2from
presence-state
Oct 21, 2025
Merged

Prevent allocation loops when LeakPresenceDetector ResourceScope is closed#15768
normanmaurer merged 1 commit into
4.2from
presence-state

Conversation

@yawkat
Copy link
Copy Markdown
Contributor

@yawkat yawkat commented Oct 17, 2025

Motivation:

When a ResourceScope is closed, attempting to allocate will throw an exception. This can lead to repeated read attempts in byte channels, leading to excessive exceptionCaught events and log messages.

Modification:

Introduce an AllocationProhibitedException that is treated like an OutOfMemoryError by channels.

Result:

No more excessive log output for broken tests.

…losed

Motivation:

When a ResourceScope is closed, attempting to allocate will throw an exception. This can lead to repeated read attempts in byte channels, leading to excessive exceptionCaught events and log messages.

Modification:

Introduce an AllocationProhibitedException that is treated like an OutOfMemoryError by channels.

Result:

No more excessive log output for broken tests.
@yawkat yawkat requested a review from normanmaurer October 17, 2025 08:13
@normanmaurer normanmaurer added this to the 4.2.8.Final milestone Oct 21, 2025
@normanmaurer normanmaurer merged commit 8cd4ba5 into 4.2 Oct 21, 2025
18 of 20 checks passed
@normanmaurer normanmaurer deleted the presence-state branch October 21, 2025 20:16
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