8224480: (fc) java/nio/channels/FileChannel/MapTest.java fails intermittently
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Jul 1 21:56:30 UTC 2019
> On Jun 30, 2019, at 1:42 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
>> 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).
The default timeout is 120 seconds and the timeout factor is 4 so the test timed out after 8 minutes. We could as well then double the timeout value as in the diff below versus the previous patch to allow more time to complete.
Brian
--- a/test/jdk/java/nio/channels/FileChannel/MapTest.java
+++ b/test/jdk/java/nio/channels/FileChannel/MapTest.java
@@ -24,7 +24,7 @@
/* @test
* @bug 4429043 8002180
* @summary Test file mapping with FileChannel
- * @run main/othervm MapTest
+ * @run main/othervm/timeout=240 MapTest
* @key randomness
*/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/nio-dev/attachments/20190701/a33aa907/attachment.html>
More information about the nio-dev
mailing list