You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/10/06 04:56:59 UTC
[02/24] git commit: SLIDER-455 TestStandaloneAMMonkeyRestart test
failure
SLIDER-455 TestStandaloneAMMonkeyRestart test failure
Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/0b1ff8e1
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/0b1ff8e1
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/0b1ff8e1
Branch: refs/heads/feature/SLIDER-149_Support_a_YARN_service_registry
Commit: 0b1ff8e142218a60843697681a7d1419a324f7f8
Parents: 2bbaafd
Author: Steve Loughran <st...@apache.org>
Authored: Wed Oct 1 14:50:43 2014 -0700
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Oct 1 14:50:43 2014 -0700
----------------------------------------------------------------------
.../standalone/TestStandaloneAMMonkeyRestart.groovy | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/0b1ff8e1/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
----------------------------------------------------------------------
diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
index b37b9a6..5136092 100644
--- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMMonkeyRestart.groovy
@@ -59,13 +59,11 @@ class TestStandaloneAMMonkeyRestart extends AgentMiniClusterTestBase {
ApplicationReport report
report = waitForClusterLive(sliderClient, 30000)
describe "Waiting for the cluster to fail"
- sleep(40000)
- // end of process
- report = sliderClient.applicationReport
- log.info(report.diagnostics)
- assert report.currentApplicationAttemptId.attemptId == threshold
- assert YarnApplicationState.FAILED == report.yarnApplicationState
- assert FinalApplicationStatus.FAILED == report.finalApplicationStatus
+ def finishedReport = waitForAppToFinish(sliderClient, 90000)
+ log.info(finishedReport.diagnostics)
+ assert finishedReport.currentApplicationAttemptId.attemptId == threshold
+ assert YarnApplicationState.FAILED == finishedReport.yarnApplicationState
+ assert FinalApplicationStatus.FAILED == finishedReport.finalApplicationStatus
}
/**