jppf-grid / JPPF

The open source grid computing solution
https://www.jppf.org
Apache License 2.0
65 stars 12 forks source link

Intermittent test failure for TestGridPolicy.testWorkingFalseJavaPolicy() #33

Closed lolocohen closed 3 years ago

lolocohen commented 3 years ago

Observed behavior

The test method TestGridPolicy.testWorkingFalseJavaPolicy() fails intemrittently with this stack reported by JUnit:

java.lang.Exception: test timed out after 20000 milliseconds
  at org.junit.interrnal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:66)

The occurrence frequency of the failure is very low: less than one in 100 runs.

From the produced logs, it appears that it is not the test itself that fails, but rather something during the shutdown and cleanup operations after the test. My primary suspect is tied to the specificiy of this test method, which starts 2 slave nodes in addition to the 2 master nodes specified in the test configuration.

This was observed in JPPF trunk and in 6.2 branch.

How to reproduce

  1. Build JPPF (ant build from th elocal repo root)
  2. go to the tests folder, run the test 1000 times, and wait until the failure occurs. Use the following command:
    • on Windows: repeatTest.bat **/TestGridPolicy.java 1000
    • on Linux/Unix: ./repeatTest.sh **/TestGridPolicy.java 1000

Full set of logs of a failure is attached here: test.org.jppf.node.policy.TestGridPolicy.zip