From 632d5e8a98bae629f20dd88d391f42dd5029a98d Mon Sep 17 00:00:00 2001 From: Weiwei Yang Date: Fri, 22 Feb 2019 11:27:17 +0800 Subject: [PATCH] YARN-9156. Improve debug message in device plugin method compatibility check of ResourcePluginManager. Contributed by Zhankun Tang. --- .../containermanager/resourceplugin/ResourcePluginManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 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/ResourcePluginManager.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/ResourcePluginManager.java index 0bc241dcf8..9574980781 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/ResourcePluginManager.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/ResourcePluginManager.java @@ -230,8 +230,7 @@ public void checkInterfaceCompatibility(Class expectedClass, for (Method m : actualClass.getDeclaredMethods()) { if (m.getName().equals(method.getName())) { LOG.debug("Method {} found in class {}", - actualClass.getSimpleName(), - m.getName()); + m.getName(), actualClass.getSimpleName()); found = true; break; }