Repository: incubator-slider
Updated Branches:
  refs/heads/develop 72932530f -> 9b17e5e7f


SLIDER-934 changes in list Action broke return codes from  action


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

Branch: refs/heads/develop
Commit: 9b17e5e7f32c06eeba77304ec1de7157dfb12767
Parents: 7293253
Author: Gour Saha <[email protected]>
Authored: Fri Sep 4 11:50:16 2015 -0700
Committer: Gour Saha <[email protected]>
Committed: Fri Sep 4 11:50:16 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/slider/client/SliderClient.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/9b17e5e7/slider-core/src/main/java/org/apache/slider/client/SliderClient.java
----------------------------------------------------------------------
diff --git 
a/slider-core/src/main/java/org/apache/slider/client/SliderClient.java 
b/slider-core/src/main/java/org/apache/slider/client/SliderClient.java
index b993cc5..0ad3418 100644
--- a/slider-core/src/main/java/org/apache/slider/client/SliderClient.java
+++ b/slider-core/src/main/java/org/apache/slider/client/SliderClient.java
@@ -2667,7 +2667,9 @@ public class SliderClient extends 
AbstractSliderLaunchedService implements RunSe
       throws IOException, YarnException {
     Set<String> appInstances = getApplicationList(clustername, args);
     // getApplicationList never returns null
-    return appInstances.size() > 0 ? EXIT_SUCCESS : EXIT_FALSE;
+    return appInstances.size() > 0 ? EXIT_SUCCESS
+        : (appInstances.size() == 0 && isUnset(clustername)) ? EXIT_SUCCESS
+            : EXIT_FALSE;
   }
 
   /**

Reply via email to