hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snem...@apache.org
Subject [hadoop] branch branch-3.2 updated: YARN-9094: Remove unused interface method: NodeResourceUpdaterPlugin#handleUpdatedResourceFromRM. Contributed by Gergely Pollak
Date Fri, 09 Aug 2019 07:52:21 GMT
This is an automated email from the ASF dual-hosted git repository.

snemeth pushed a commit to branch branch-3.2
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.2 by this push:
     new 3bcf44f  YARN-9094: Remove unused interface method: NodeResourceUpdaterPlugin#handleUpdatedResourceFromRM.
Contributed by Gergely Pollak
3bcf44f is described below

commit 3bcf44f07079002eb2e3b6ab5892f6c96b971041
Author: Szilard Nemeth <snemeth@apache.org>
AuthorDate: Fri Aug 9 09:49:18 2019 +0200

    YARN-9094: Remove unused interface method: NodeResourceUpdaterPlugin#handleUpdatedResourceFromRM.
Contributed by Gergely Pollak
    
    (cherry picked from commit 72d7e570a73989aa18b737c0e642d570a55c6781)
---
 .../resourceplugin/NodeResourceUpdaterPlugin.java        | 16 +---------------
 1 file changed, 1 insertion(+), 15 deletions(-)

diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/NodeResourceUpdaterPlugin.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/NodeResourceUpdaterPlugin.java
index 88f77ed..107e43c 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/NodeResourceUpdaterPlugin.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/resourceplugin/NodeResourceUpdaterPlugin.java
@@ -28,25 +28,11 @@ import org.apache.hadoop.yarn.exceptions.YarnException;
 public abstract class NodeResourceUpdaterPlugin {
   /**
    * Update configured resource for the given component.
-   * @param res resource passed in by external mododule (such as
+   * @param res resource passed in by external module (such as
    *            {@link org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdater}
    * @throws YarnException when any issue happens.
    */
   public abstract void updateConfiguredResource(Resource res)
       throws YarnException;
 
-  /**
-   * This method will be called when the node's resource is loaded from
-   * dynamic-resources.xml in ResourceManager.
-   *
-   * @param newResource newResource reported by RM
-   * @throws YarnException when any mismatch between NM/RM
-   */
-  public void handleUpdatedResourceFromRM(Resource newResource) throws
-      YarnException {
-    // by default do nothing, subclass should implement this method when any
-    // special activities required upon new resource reported by RM.
-  }
-
-  // TODO: add implementation to update node attribute once YARN-3409 merged.
 }
\ No newline at end of file


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