[crac] Integrated: 8349560: [CRaC] Close EPoll FDs when FD policies close registered sockets
Radim Vansa
rvansa at openjdk.org
Thu Feb 13 14:15:38 UTC 2025
On Thu, 6 Feb 2025 16:56:53 GMT, Radim Vansa <rvansa at openjdk.org> wrote:
> FD policies are applied as the last set of JDK resources. When these are meant to close server sockets, it’s rather too late: open EPoll FDs won’t be closed automatically as these have the socket still registered when the automatic close is performed.
>
> We can apply FD policies on sockets and close these if requested before EPoll FD handling. The downside is that we would not handle sockets opened during checkpoint, but generally the application should not do that.
>
> Besides changing the order of closing this PR also improves the way EPoll FDs are reported: the Selector throws BusySelectorException listing channels registered on that selector, and EPoll FD and Event Epoll FD are claimed through Java code with message referencing the selector (this suppresses native open FD detection that wouldn't provide much info).
This pull request has now been integrated.
Changeset: cbf20c2e
Author: Radim Vansa <rvansa at openjdk.org>
URL: https://git.openjdk.org/crac/commit/cbf20c2e5d10dfc544a86b549d13cc784eed43b8
Stats: 146 lines in 6 files changed: 137 ins; 4 del; 5 mod
8349560: [CRaC] Close EPoll FDs when FD policies close registered sockets
Reviewed-by: tpushkin
-------------
PR: https://git.openjdk.org/crac/pull/202
More information about the crac-dev
mailing list