RFR: 8265261: java/nio/file/Files/InterruptCopy.java fails with java.lang.RuntimeException: Copy was not interrupted [v4]

Brian Burkhalter bpb at openjdk.java.net
Mon Aug 23 18:06:34 UTC 2021


On Fri, 20 Aug 2021 17:39:46 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> This proposal suggests to change the timing of testing whether a file copy is terminated by an interrupt.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8265261: Drop countdown latch and repeats of interrupts

I tested in my work in progress by delaying the sleep until 10ms after the interrupt was issued and the copy was not interrupted. I expect that this is the reason for the 1 failure out of 540 executions mentioned above.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5154


More information about the nio-dev mailing list