netty5/transport
Norman Maurer a6896eae43
NioEventLoopTest.testChannelsRegistered test failure (#10014)
Motivation:

NioEventLoopTest.testChannelsRegistered sometimes fails due a race which is related to how SelectionKey and Selector is implemented in the JDK. In the current implementation it will "lazy" remove SelectionKeys from the Set which means we may still have these included sometimes when we use size() to get the number of SelectionKeys.

Modifications:

Just retry to read the number of registered Channels if we still see 2

Result:

Fixes https://github.com/netty/netty/issues/9895
2020-02-10 20:28:53 +01:00
..
src NioEventLoopTest.testChannelsRegistered test failure (#10014) 2020-02-10 20:28:53 +01:00
pom.xml [maven-release-plugin] prepare for next development iteration 2020-01-13 09:13:53 +00:00