8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently
Alan Bateman
Alan.Bateman at oracle.com
Sun Jun 30 08:42:24 UTC 2019
On 28/06/2019 22:46, Brian Burkhalter wrote:
> https://bugs.openjdk.java.net/browse/JDK-8224480
>
> The failures reported in this issue were all in the recently added
> MapTest.testForce() method. This method currently performs 12,800
> invocations of MappedByteBuffer.force(int,int). On Unix, force() calls
> msync(2) to flush the in-memory data to the file system. The machines
> on which the failures occurred were determined to be two 2012 vintage
> Mac Pros and a Mac Mini of similar vintage, all running HDDs, 5400 RPM
> on the Mini, 7200 RPM on the Pros. The hypothesis is that these
> configurations could be too slow for this sub-test so this patch
> proposes to halve the number of iterations in testForce() to account
> for this. An alternative would be to change testForce() to be a
> separate test.
This looks okay but I'm curious what the run-times are like on these
systems (I'm just wondering if it might also be useful to add a /timeout
option to the @run line so that they have more time to complete, even
with the reduced number of iterations).
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190630/f1c0b01d/attachment.html>
More information about the nio-dev
mailing list