You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by el...@apache.org on 2014/11/22 23:04:50 UTC

[19/50] incubator-slider git commit: SLIDER-622 add a second destroy operation after a sleep, may handle directory-not-deleted problems

SLIDER-622 add a second destroy operation after a sleep, may handle directory-not-deleted problems


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/34ac14f8
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/34ac14f8
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/34ac14f8

Branch: refs/heads/master
Commit: 34ac14f8a5f07371a136dcef6f28242f8081ef65
Parents: d84f83c
Author: Steve Loughran <st...@apache.org>
Authored: Mon Nov 10 22:06:45 2014 +0000
Committer: Steve Loughran <st...@apache.org>
Committed: Mon Nov 10 22:48:10 2014 +0000

----------------------------------------------------------------------
 .../slider/agent/standalone/TestStandaloneAMDestroy.groovy       | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/34ac14f8/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
----------------------------------------------------------------------
diff --git a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
index 6593a0e..4a94eb3 100644
--- a/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
+++ b/slider-core/src/test/groovy/org/apache/slider/agent/standalone/TestStandaloneAMDestroy.groovy
@@ -115,6 +115,10 @@ class TestStandaloneAMDestroy extends AgentMiniClusterTestBase {
     
     int exitCode = sliderClient.actionDestroy(clustername);
     assert 0 == exitCode
+    sleep(1000)
+    // twice, not expecting an error the second time
+    exitCode = sliderClient.actionDestroy(clustername);
+    assert 0 == exitCode
 
     describe "post destroy checks"
     sliderFileSystem.verifyDirectoryNonexistent(instanceDir)