JDK-8010904 : JCK test api/java_util/concurrent/Phaser/Phaser.html#Phaser often fails by timeout
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.concurrent
  • Affected Version: 8
  • Priority: P2
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • Submitted: 2013-03-27
  • Updated: 2013-10-03
  • Resolved: 2013-10-03
Related Reports
Relates :  
Description
A JCK test

api/java_util/concurrent/Phaser/Phaser.html#Phaser[testRegisterEmptySubPhaser]

fails by timeout quite often.

The test is ported from 
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck/PhaserTest.java?revision=1.37&view=markup


Comments
There have been a number of changes in the j.u.c package ( and the VM ) over the past number of months, some may have impacted on Phaser but it if difficult to be sure. I verified that the source of Phaser in jdk8 b109 is the same as in Doug's CVS. The JCK PhaserTest is also up to date, as of Revision 1.37 / JCK b31. I have run the test several 10's of thousands of times on Windows and Solaris with JDK8 b109. No hang or failure was observed. I will close this bug. If the submitter can still reproduce the problem a new bug can be opened to track it.
03-10-2013

Is there any update on this one? We've had at least one update from Doug's CVS since the last update to this bug and it would be useful to know if we still have an issue to look at for 8.
31-08-2013

Chris - do plan to check this one to see if this is a test or Phase issue?
04-04-2013

"testRegisterEmptySubPhaser" is the only problematic test, everything else works fine and passes
27-03-2013

It just hangs up. It has not been changed recently and it still represents the original version: Revision 1.37 - (download) (annotate) Sat Nov 26 05:42:14 2011 UTC (16 months ago) by jsr166 You can reproduce the failure by grabbing the contents of http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/test/tck/ and running PhaserTest with JDK8b82 as a JUnit test - at my Windows desktop it hangs on "testRegisterEmptySubPhaser" testcase.
27-03-2013

Can you post a stack, or more information, about how this JCK test is failing? Has the test changed recently, or since JCK7?
27-03-2013