You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2019/02/01 13:23:49 UTC

[incubator-iotdb] branch fix_sonar_jt updated: fix some logs

This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch fix_sonar_jt
in repository https://gitbox.apache.org/repos/asf/incubator-iotdb.git


The following commit(s) were added to refs/heads/fix_sonar_jt by this push:
     new 5e306fc  fix some logs
5e306fc is described below

commit 5e306fcdcb365f56a020b3677d90a25368b00617
Author: jt <jt...@163.com>
AuthorDate: Fri Feb 1 21:23:01 2019 +0800

    fix some logs
---
 .../org/apache/iotdb/db/engine/filenode/FileNodeManager.java     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenode/FileNodeManager.java b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenode/FileNodeManager.java
index 0d7f5ff..765427e 100644
--- a/iotdb/src/main/java/org/apache/iotdb/db/engine/filenode/FileNodeManager.java
+++ b/iotdb/src/main/java/org/apache/iotdb/db/engine/filenode/FileNodeManager.java
@@ -241,7 +241,7 @@ public class FileNodeManager implements IStatistic, IService {
         // add index check sum
       }
     } catch (PathErrorException | FileNodeManagerException | FileNodeProcessorException e) {
-      LOGGER.error("Restore all FileNode failed, the reason is {}", e);
+      LOGGER.error("Restoring all FileNodes failed, the reason is ", e);
     }
   }
 
@@ -853,7 +853,7 @@ public class FileNodeManager implements IStatistic, IService {
       } else {
         LOGGER.info(
                 "Can't delete the filenode processor {}, because it can't get the write lock."
-                        + " Wait 100ms to retry");
+                        + " Wait 100ms to retry", processorName);
       }
       try {
         TimeUnit.MILLISECONDS.sleep(100);
@@ -1023,7 +1023,7 @@ public class FileNodeManager implements IStatistic, IService {
           try {
             flushTop(0.01f);
           } catch (IOException e) {
-            LOGGER.error("force flush memory data error:{}", e);
+            LOGGER.error("force flush memory data error: ", e);
           }
         }
         break;
@@ -1083,7 +1083,7 @@ public class FileNodeManager implements IStatistic, IService {
     try {
       closeAll();
     } catch (FileNodeManagerException e) {
-      LOGGER.error("Failed to close file node manager because {}.", e);
+      LOGGER.error("Failed to close file node manager because .", e);
     }
   }
 
@@ -1130,4 +1130,5 @@ public class FileNodeManager implements IStatistic, IService {
 
     private static final FileNodeManager INSTANCE = new FileNodeManager(TsFileDBConf.fileNodeDir);
   }
+  
 }
\ No newline at end of file