hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vino...@apache.org
Subject hadoop git commit: YARN-7565. Addendum to fix an incompatible change. Contributed by Wangda Tan.
Date Fri, 15 Dec 2017 01:11:03 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 17ba74be2 -> 95d4ec7fc


YARN-7565. Addendum to fix an incompatible change. Contributed by Wangda Tan.


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

Branch: refs/heads/trunk
Commit: 95d4ec7fc07605d1ed6eabf066cd5413eb3fe465
Parents: 17ba74b
Author: Vinod Kumar Vavilapalli (I am also known as @tshooter.) <vinodkv@apache.org>
Authored: Thu Dec 14 17:07:17 2017 -0800
Committer: Vinod Kumar Vavilapalli (I am also known as @tshooter.) <vinodkv@apache.org>
Committed: Thu Dec 14 17:10:37 2017 -0800

----------------------------------------------------------------------
 .../apache/hadoop/yarn/client/api/async/AMRMClientAsync.java  | 2 --
 .../yarn/client/api/async/impl/AMRMClientAsyncImpl.java       | 7 +++++--
 2 files changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/95d4ec7f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/AMRMClientAsync.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/AMRMClientAsync.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/AMRMClientAsync.java
index a3d7959..2b82ad6 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/AMRMClientAsync.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/AMRMClientAsync.java
@@ -539,7 +539,5 @@ extends AbstractService {
      * @param e
      */
     void onError(Throwable e);
-
-    void onContainersReceivedFromPreviousAttempts(List<Container> containers);
   }
 }

http://git-wip-us.apache.org/repos/asf/hadoop/blob/95d4ec7f/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/impl/AMRMClientAsyncImpl.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/impl/AMRMClientAsyncImpl.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/impl/AMRMClientAsyncImpl.java
index cafb153..33b0aba 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/impl/AMRMClientAsyncImpl.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/async/impl/AMRMClientAsyncImpl.java
@@ -360,8 +360,11 @@ extends AMRMClientAsync<T> {
           }
 
           if (!response.getContainersFromPreviousAttempts().isEmpty()) {
-            handler.onContainersReceivedFromPreviousAttempts(
-                response.getContainersFromPreviousAttempts());
+            if (handler instanceof AMRMClientAsync.AbstractCallbackHandler) {
+              ((AMRMClientAsync.AbstractCallbackHandler) handler)
+                  .onContainersReceivedFromPreviousAttempts(
+                      response.getContainersFromPreviousAttempts());
+            }
           }
           progress = handler.getProgress();
         } catch (Throwable ex) {


---------------------------------------------------------------------
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