Skip to content

NioDatagramAcceptorTest - static ExceptionMonitor filtering - #78

Open
the-thing wants to merge 3 commits into
apache:2.2.Xfrom
the-thing:filtering-interrupted-exception
Open

the-thing wants to merge 3 commits into
apache:2.2.Xfrom
the-thing:filtering-interrupted-exception

Conversation

@the-thing

@the-thing the-thing commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

We fixed DIRMINA-1140 in #75 but it still fails from time to time e.g https://github.com/apache/mina/actions/runs/37960280693/job/113921075126

The problem is that the org.apache.mina.transport.socket.nio.NioDatagramAcceptorTest assertion relies on exception capture via org.apache.mina.util.ExceptionMonitor which is static and accessed from many classes.

Changes

I added filtering to only count failures when exceptions are throw from org.apache.mina.transport.socket.nio.NioDatagramAcceptor directly which was the original issue.

Alternative

One of the alternative fixes is to provide an instance exception monitor field to NioDatagramAcceptor that is only visible to the test.

@the-thing the-thing changed the title DIRMINA-1140 - static ExceptionMonitor filtering Static ExceptionMonitor filtering Oct 9, 2026
@the-thing

Copy link
Copy Markdown
Member Author

Updated title. It is not actually a fix for DIRMINA-1140, but the test that is flaky itself.

@the-thing the-thing changed the title Static ExceptionMonitor filtering NioDatagramAcceptorTest - static ExceptionMonitor filtering Oct 9, 2026
@the-thing the-thing changed the title NioDatagramAcceptorTest - static ExceptionMonitor filtering NioDatagramAcceptorTest - static ExceptionMonitor filtering Oct 9, 2026
@the-thing
the-thing marked this pull request as draft October 10, 2026 06:34
@the-thing
the-thing marked this pull request as ready for review October 10, 2026 07:04
@the-thing
the-thing force-pushed the filtering-interrupted-exception branch from ea0958b to 5bb8e0f Compare October 10, 2026 07:39
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.

1 participant