kr11 commented on a change in pull request #35: Fix sonar tianyu
URL: https://github.com/apache/incubator-iotdb/pull/35#discussion_r252104959
 
 

 ##########
 File path: iotdb/src/main/java/org/apache/iotdb/db/monitor/StatMonitor.java
 ##########
 @@ -125,13 +125,13 @@ public long getNumInsertError() {
 
   public void registStatStorageGroup() {
     MManager mManager = MManager.getInstance();
-    String prefix = MonitorConstants.statStorageGroupPrefix;
+    String prefix = MonitorConstants.STAT_STORAGE_GROUP_PREFIX;
     try {
       if (!mManager.pathExist(prefix)) {
         mManager.setStorageLevelToMTree(prefix);
       }
     } catch (Exception e) {
-      LOGGER.error("MManager cannot set storage level to MTree, because {}", 
e.getMessage());
+      LOGGER.error("MManager cannot set storage level to MTree, because {}", 
e);
 
 Review comment:
   Deleting `because {}`. therefore `e` is regarded as the second parameter of  
`error` function, and full stack trace can be print out

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