hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jia...@apache.org
Subject [04/50] [abbrv] hadoop git commit: YARN-6205. Default lifetime for native services app is invalid. Contributed by Billie Rinaldi
Date Wed, 21 Jun 2017 18:33:26 GMT
YARN-6205. Default lifetime for native services app is invalid. Contributed by Billie Rinaldi


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/0661dedb
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/0661dedb
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/0661dedb

Branch: refs/heads/yarn-native-services
Commit: 0661dedb04951edb0d12c133ae6b67f45454e33a
Parents: 1bf7d81
Author: Gour Saha <gourksaha@apache.org>
Authored: Tue Feb 21 09:04:04 2017 -0800
Committer: Jian He <jianhe@apache.org>
Committed: Wed Jun 21 11:32:52 2017 -0700

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


http://git-wip-us.apache.org/repos/asf/hadoop/blob/0661dedb/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
index e84809a..00e2b62 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-slider/hadoop-yarn-slider-core/src/main/java/org/apache/slider/client/SliderClient.java
@@ -2070,7 +2070,7 @@ public class SliderClient extends AbstractSliderLaunchedService implements
RunSe
     amLauncher.setKeepContainersOverRestarts(true);
     // set lifetime in submission context;
     Map<ApplicationTimeoutType, Long> appTimeout = new HashMap<>();
-    if (lifetime >= 0) {
+    if (lifetime > 0) {
       appTimeout.put(ApplicationTimeoutType.LIFETIME, lifetime);
     }
     amLauncher.submissionContext.setApplicationTimeouts(appTimeout);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message