-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8361495: (fc) Async close of streams connected to uninterruptible FileChannel doesn't throw AsynchronousCloseException in all cases #26435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…eChannel doesn't throw AsynchronousCloseException in all cases
|
👋 Welcome back bpb! A progress list of the required criteria for merging this PR into |
|
@bplb This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be: You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 22 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
|
The update to FileChannelImpl looks right. The change impacts the read methods of input streams obtained from Files.newInputStream and the write methods of output streams obtained from Files.newOutputStream. I'm wonder if we should create a new complete test for this long standing issue. Right now, the test only exercises the available method and I worry that it continues when it runs out of file desciptors. |
The test needs some work anyway so I will investigate. |
|
The test as of commit 899f28c passed 100 repeats on Linux and Windows with the change to |
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
test/jdk/java/nio/channels/FileChannel/ChannelInputStreamTest.java
Outdated
Show resolved
Hide resolved
|
CI tier 1-3 jobs passed on the usual OSes. /integrate |
|
Going to push as commit f1c0b4e.
Your commit was automatically rebased without conflicts. |
Throw
AsynchronousCloseExceptionfromFileChannelImplmethods if the channel is uninterruptible and was closed before the method (operation) could complete.Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26435/head:pull/26435$ git checkout pull/26435Update a local copy of the PR:
$ git checkout pull/26435$ git pull https://git.openjdk.org/jdk.git pull/26435/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26435View PR using the GUI difftool:
$ git pr show -t 26435Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26435.diff
Using Webrev
Link to Webrev Comment