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/11/10 23:46:10 UTC

[20/24] 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/eaf77bab
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/eaf77bab
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/eaf77bab

Branch: refs/heads/develop
Commit: eaf77bab5aa356ef3e09df29649447e8fac3b16e
Parents: 23c71f5
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:06:45 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/eaf77bab/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)