<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">On 12/04/2024 18:42, Bruno Ploumhans
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:CAH225Xi-vNxVbhsq5h2o+Hmm_JFPcZ=wfuQ80b-ffx4aALOcuQ@mail.gmail.com">
      
      <div dir="ltr">
        Hi,
        <div class="gmail_quote">
          <div dir="ltr">
            <div><br>
            </div>
            <div>When reading from a zip file on the disk, <span style="font-family:monospace">ZipFileSystem</span> uses
              a <span style="font-family:monospace">SeekableByteChannel</span>
              internally to read from the zip file. Unfortunately, this
              channel is interruptible, and therefore a single thread
              interruption while reading from a <span style="font-family:monospace">ZipPath</span> will make
              the entire ZipFS unusable. This is problematic for
              long-lived <span style="font-family:monospace">ZipFileSystem</span><span style="font-family:arial,sans-serif">s</span> that can
              be used by multiple threads. I suppose that this is a bug?<br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
    There are a couple of issues on this, JDK-8316882 [1]. We had
    proposals in the past to allow a FileChannel be created as
    "uninterruptible" but there wasn't consensus on moving forward on
    that.<br>
    <br>
    -Alan<br>
    <br>
    [1] <a class="moz-txt-link-freetext" href="https://bugs.openjdk.org/browse/JDK-8316882">https://bugs.openjdk.org/browse/JDK-8316882</a><br>
  </body>
</html>