Repository: incubator-slider
Updated Branches:
  refs/heads/develop 1563ad8b4 -> 6ecd0b0a4


SLIDER-1241 ApplicationWithAddonPackagesIT tests fail in WASB due to HDFS 
mkdirs API not adhering to "mkdir -p" semantics


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

Branch: refs/heads/develop
Commit: 6ecd0b0a40161694366152881189163902c1d4bb
Parents: 1563ad8
Author: Gour Saha <gourks...@apache.org>
Authored: Wed Aug 23 23:48:51 2017 -0700
Committer: Gour Saha <gourks...@apache.org>
Committed: Wed Aug 23 23:48:51 2017 -0700

----------------------------------------------------------------------
 .../coprocessors/ApplicationWithAddonPackagesIT.groovy      | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/6ecd0b0a/slider-funtest/src/test/groovy/org/apache/slider/funtest/coprocessors/ApplicationWithAddonPackagesIT.groovy
----------------------------------------------------------------------
diff --git 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/coprocessors/ApplicationWithAddonPackagesIT.groovy
 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/coprocessors/ApplicationWithAddonPackagesIT.groovy
index 20ff75c..c8f20c0 100644
--- 
a/slider-funtest/src/test/groovy/org/apache/slider/funtest/coprocessors/ApplicationWithAddonPackagesIT.groovy
+++ 
b/slider-funtest/src/test/groovy/org/apache/slider/funtest/coprocessors/ApplicationWithAddonPackagesIT.groovy
@@ -18,6 +18,7 @@ package org.apache.slider.funtest.coprocessors
 
 import groovy.transform.CompileStatic
 import groovy.util.logging.Slf4j
+import java.io.IOException;
 import org.apache.hadoop.fs.Path
 import org.apache.slider.common.params.Arguments
 import org.apache.slider.common.tools.SliderUtils
@@ -57,7 +58,11 @@ public class ApplicationWithAddonPackagesIT extends 
AgentCommandTestBase{
   public void prepareCluster() {
     setupCluster(CLUSTER)
     cleanupHdfsFile(TARGET_FILE)
-    clusterFS.mkdirs(new Path(TARGET_FILE).getParent())
+    try {
+      clusterFS.mkdirs(new Path(TARGET_FILE).getParent())
+    } catch (IOException e) {
+      // if dir exists then ignore
+    }
   }
 
   @After
@@ -238,4 +243,4 @@ public class ApplicationWithAddonPackagesIT extends 
AgentCommandTestBase{
     awaitTargetFileExists()
   }
 
-}
\ No newline at end of file
+}

Reply via email to