8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently
Lance Andersen
lance.andersen at oracle.com
Fri Jun 28 21:53:36 UTC 2019
Hi Brian,
Seems reasonable attempt and I guess if all else fails go the separate test route…
> On Jun 28, 2019, at 5:46 PM, Brian Burkhalter <brian.burkhalter at oracle.com> wrote:
>
> https://bugs.openjdk.java.net/browse/JDK-8224480 <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.
>
> Thanks,
>
> Brian
>
> --- a/test/jdk/java/nio/channels/FileChannel/MapTest.java
> +++ b/test/jdk/java/nio/channels/FileChannel/MapTest.java
> @@ -195,7 +195,7 @@
> * the data exercising various valid and invalid writeback ranges.
> */
> private static void testForce() throws Exception {
> - for (int x=0; x<100; x++) {
> + for (int x=0; x<50; x++) {
> try (RandomAccessFile raf = new RandomAccessFile(blah, "rw")) {
> FileChannel fc = raf.getChannel();
> final int BLOCK_SIZE = 64;
>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif> <http://oracle.com/us/design/oracle-email-sig-198324.gif>
<http://oracle.com/us/design/oracle-email-sig-198324.gif>Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering
1 Network Drive
Burlington, MA 01803
Lance.Andersen at oracle.com <mailto:Lance.Andersen at oracle.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190628/f514ad7e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oracle_sig_logo.gif
Type: image/gif
Size: 658 bytes
Desc: not available
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190628/f514ad7e/oracle_sig_logo.gif>
More information about the nio-dev
mailing list