瀏覽代碼

YARN-8322. Change log level when there is an IOException when the allocation file is loaded. (Szilard Nemeth via Haibo Chen)

Haibo Chen 7 年之前
父節點
當前提交
676dcffff5

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/AllocationFileLoaderService.java

@@ -109,7 +109,7 @@ public class AllocationFileLoaderService extends AbstractService {
   @Override
   public void serviceInit(Configuration conf) throws Exception {
     this.allocFile = getAllocationFile(conf);
-    if(this.allocFile != null) {
+    if (this.allocFile != null) {
       this.fs = allocFile.getFileSystem(conf);
       reloadThread = new Thread(() -> {
         while (running) {
@@ -138,7 +138,7 @@ public class AllocationFileLoaderService extends AbstractService {
               lastReloadAttemptFailed = true;
             }
           } catch (IOException e) {
-            LOG.info("Exception while loading allocation file: " + e);
+            LOG.error("Exception while loading allocation file: " + e);
           }
           try {
             Thread.sleep(reloadIntervalMs);