RFR: 6539707: (fc) MappedByteBuffer.force() method throws an IOException in a very simple test
Thomas Stuefe
stuefe at openjdk.java.net
Wed Feb 24 17:32:41 UTC 2021
On Wed, 24 Feb 2021 16:48:27 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> I put in the retry loop several years ago as a workaround to what we thought at the time was a Windows bug. It was very intermittent and seem to be load related. I suspect this issue really needs someone from the Windows team to comment.
>
> The test was based on the one in the issue. I have not coerced it to fail. It is designed to fail on Windows only in case we can catch the flush failure. As far as I am concerned the retry iteration count increase could be removed from this issue altogether and the flush failure addressed in a different issue after there are comments from Microsoft. The present issue in fact ought to be renamed to something like "Mapped memory force methods should be specified to throw UncheckedIOExcreption".
Alan, Brian, thanks for the clarifications.
Luckily, we have more participation from Microsoft than we had in the past, so the chance of getting feedback is higher.
Cheers, Thomas
-------------
PR: https://git.openjdk.java.net/jdk/pull/2636
More information about the nio-dev
mailing list