fanhualta commented on a change in pull request #32: fix sonar issues
URL: https://github.com/apache/incubator-iotdb/pull/32#discussion_r251857678
 
 

 ##########
 File path: 
iotdb/src/main/java/org/apache/iotdb/db/engine/filenode/FileNodeManager.java
 ##########
 @@ -246,248 +232,247 @@ public void recovery() {
         FileNodeProcessor fileNodeProcessor = getProcessor(filenodeName, true);
         if (fileNodeProcessor.shouldRecovery()) {
           LOGGER.info("Recovery the filenode processor, the filenode is {}, 
the status is {}",
-              filenodeName,
-              fileNodeProcessor.getFileNodeProcessorStatus());
+                  filenodeName,
+                  fileNodeProcessor.getFileNodeProcessorStatus());
           fileNodeProcessor.fileNodeRecovery();
         } else {
           fileNodeProcessor.writeUnlock();
         }
         // add index check sum
-        // fileNodeProcessor.rebuildIndex();
       }
     } catch (PathErrorException | FileNodeManagerException | 
FileNodeProcessorException e) {
-      LOGGER.error("Restore all FileNode failed, the reason is {}", 
e.getMessage());
+      LOGGER.error("Restore all FileNode failed, the reason is {}", e);
 
 Review comment:
   {} is unneccessary.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to