Fwd: Thread interruption while reading from a ZipFS entry will close the entire FS
Alan Bateman
Alan.Bateman at oracle.com
Sat Apr 13 06:57:43 UTC 2024
On 12/04/2024 20:34, Bruno Ploumhans wrote:
> :
>
> I am inclined to believe that Files.readAllBytes is doing the right
> thing, so I would propose 3 fix strategies:
> 1. Change Files.newByteChannel to call setUninterruptible() on FileChannelImpl.
> 2. Call setUninterruptible() on FileChannelImpl from ZipFS.
> 3. Same as 2. but with the addition of a new API method for
> setUninterruptible, to expose the same functionality to other FS
> implementations.
We've had previous discussion on this topic [1], it may be time to think
about this again.
-Alan
[1] https://mail.openjdk.org/pipermail/nio-dev/2018-February/004756.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/nio-dev/attachments/20240413/af587540/attachment.htm>
More information about the nio-dev
mailing list