On Tue, 20 Oct 2020 21:49:37 GMT, Brent Christian <bchri...@openjdk.org> wrote:

> Hi,
> 
> The java/util/prefs/AddNodeChangeListener.java test fails once in a while in 
> the automated test system.  Previous
> failures were traced to machine configuration errors, but that does not 
> appear to be the case this time.
> My efforts to reproduce this failure have been unsuccessful.  The only useful 
> information I've gleaned so far from the
> test failure logs is that the overall duration for running tier1 is longer 
> than usual when the test failure happens.
> I would like to make the following updates to the test, in hopes of learning 
> more if and when this test fails again:
> 
> * fail faster, to report if it is addNode() or removeNode() that is failing
> * make multiple attempts to sleep+check the NodeChangeListener.  (If the test 
> fails after a single sleep, but passes
>   after waiting longer, maybe we just need to sleep for longer to account for 
> the occasional slower tier1 test run).
> * a few indentations fixes
> 
> Thanks,
> -Brent

test/jdk/java/util/prefs/AddNodeChangeListener.java line 65:

> 63:
> 64:         for (int i = 0; i < SLEEP_ITRS; i++) {
> 65:             Thread.sleep(3000);

Would there be any value in printing the iteration number here and in the 
analogous location in removeNode() in case
the test times out?

-------------

PR: https://git.openjdk.java.net/jdk/pull/773

Reply via email to