You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Sergiy Matusevych (JIRA)" <ji...@apache.org> on 2017/04/11 02:30:42 UTC
[jira] [Commented] (REEF-1770) Intermittent failures of
FailDriverTest.testFailDriverSuspendedTask
[ https://issues.apache.org/jira/browse/REEF-1770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15963752#comment-15963752 ]
Sergiy Matusevych commented on REEF-1770:
-----------------------------------------
Good catch [~taegeonum], and huge thanks for looking at it! I suppose that the same error may occur in other tests of the {{FailDriverTest}} class. You can run these tests in isolation, e.g. by running
{code}
.\bin\runtests.ps1 -Jars ".\lang\java\reef-examples\target\reef-examples-0.16.0-SNAPSHOT-shaded.jar;.\lang\java\reef-tests\target\reef-tests-0.16.0-SNAPSHOT-test-jar-with-dependencies.jar" -VerboseLog org.apache.reef.tests.fail.FailDriverTest
{code}
in Windows PowerShell, or just by running java as
{code}
java -cp ... -Djava.util.logging.config.class=org.apache.reef.util.logging.Config org.junit.runner.JUnitCore org.apache.reef.tests.fail.FailDriverTest
{code}
Note that {{-Djava.util.logging.config.class=org.apache.reef.util.logging.Config}} will produce verbose log, but may introduce the delay so that the tests never fail :)
Anyway, run the tests multiple times until one of them fails, and look at the logs at {{.\target\REEF_LOCAL_RUNTIME\Fail_*}}.
Also note that {{JUnitCore.main()}} exits with code 0 if all tests pass, and with code 1 if any of them fails. You can use it in your scripts to catch the test failure.
> Intermittent failures of FailDriverTest.testFailDriverSuspendedTask
> -------------------------------------------------------------------
>
> Key: REEF-1770
> URL: https://issues.apache.org/jira/browse/REEF-1770
> Project: REEF
> Issue Type: Bug
> Reporter: Tae-Geon Um
>
> We've got an intermittent test failure of FailDriverTest in [Travis|https://travis-ci.org/apache/reef/builds/220731026]. The failure message is as follows:
> {noformat}
> testFailDriverSuspendedTask(org.apache.reef.tests.fail.FailDriverTest) Time elapsed: 19.726 sec <<< FAILURE!
> java.lang.AssertionError: Unexpected error: org.apache.reef.tests.library.exceptions.DriverSideFailure: Event out of sequence: org.apache.reef.runtime.common.driver.task.TaskMessageImpl
> at org.apache.reef.tests.fail.FailDriverTest.failOn(FailDriverTest.java:64)
> at org.apache.reef.tests.fail.FailDriverTest.testFailDriverSuspendedTask(FailDriverTest.java:102)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)