Skip to content

Class loading may fail when JVM is stopped using SIGINT #38154

@wilkinsona

Description

@wilkinsona

When the JVM is stopped using SIGINT, Boot's shutdown hook runs and closes the application context. Class loading that occurs during this close processing may fail due to a thread being interrupted while calling FileChannel.read(ByteBuffer, long). The interruption causes the read to close the channel and fail with a ClosedByInterruptException. This leaves FileChannelDataBlock with a FileChannel that should be open according to its reference count but isn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: regressionA regression from a previous release

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions