[crac] RFR: 8369394: [CRaC] java.nio.channels.ClosedSelectorException in sun.nio.ch.SelectorImpl.ensureOpen

Radim Vansa rvansa at openjdk.org
Wed Oct 8 08:56:58 UTC 2025


On Wed, 8 Oct 2025 08:23:30 GMT, Roman Marchenko <rmarchenko at openjdk.org> wrote:

> Suppress `RuntimeException` as it can be thrown by `Selector.select()` method.

src/java.base/linux/classes/sun/nio/ch/EPollSelectorImpl.java line 89:

> 87:             try {
> 88:                 selector.select(1);
> 89:             } catch (IOException | RuntimeException e) {

I am worried that suppressing exceptions beyond `ClosedSelectorException` could hide a future underlying problem. Do you have a strong reason to suppress also NPEs, for instance?

-------------

PR Review Comment: https://git.openjdk.org/crac/pull/267#discussion_r2413111382


More information about the crac-dev mailing list