JDK-8068227 : java/nio/file/WatchService/LotsOfEvents.java failed with java.lang.RuntimeException: Insufficient events
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 8u40
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2014-12-24
  • Updated: 2014-12-30
  • Resolved: 2014-12-30
Related Reports
Duplicate :  
Description
This is from 8u40 resman nightly.

Please refer to the following test output:
----------messages:(3/123)----------
command: main LotsOfEvents
reason: User specified action: run main/timeout=180 LotsOfEvents 
elapsed time (seconds): 4.262
----------System.out:(0/0)----------
----------System.err:(15/838)----------
java.lang.RuntimeException: Insufficient events
	at LotsOfEvents.drainAndCheckOverflowEvents(LotsOfEvents.java:126)
	at LotsOfEvents.testOverflowEvent(LotsOfEvents.java:72)
	at LotsOfEvents.main(LotsOfEvents.java:45)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Comments
Can we close this as a dup? Also can we track down why an excluded test is being run?
30-12-2014

LotsOfEvents.java is excluded on Solaris in jdk9/dev because of JDK-7158947 (a long standing issue that we think is a Solaris 11 bug). It should be excluded in jdk8u-dev too.
29-12-2014

The link doesn't work. Please indicate which OS this is.
28-12-2014

I can't reproduce it with 8u40 and 9 either, so it looks to be an intermittent failure. Also not seen in Aurora history.
25-12-2014

This passed on Mac OS 10.9.5 with my current JDK 9-ea local build.
24-12-2014

This is most likely not specific to resman. Can the submitter please try with a main-line build, or JDK 9-ea.
24-12-2014

RULE java/nio/file/WatchService/LotsOfEvents.java Exception java.lang.RuntimeException: Insufficient events
24-12-2014