You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ta...@apache.org on 2022/01/14 06:19:26 UTC

[iotdb] 01/13: add report log

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

tanxinyu pushed a commit to branch master_performance
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit add63cd2ae710ccf336668f408a7d224a5c26f2f
Author: LebronAl <TX...@gmail.com>
AuthorDate: Thu Nov 25 16:25:01 2021 +0800

    add report log
---
 cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java b/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java
index 008854a..4303467 100644
--- a/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java
+++ b/cluster/src/main/java/org/apache/iotdb/cluster/ClusterIoTDB.java
@@ -215,12 +215,12 @@ public class ClusterIoTDB implements ClusterIoTDBMBean {
    * node. This will help to see if the node is in a consistent and right state during debugging.
    */
   private void generateNodeReport() {
-    if (logger.isDebugEnabled() && allowReport) {
+    if (logger.isInfoEnabled() && allowReport) {
       try {
         NodeReport report = new NodeReport(thisNode);
         report.setMetaMemberReport(metaGroupMember.genMemberReport());
         report.setDataMemberReportList(dataGroupEngine.genMemberReports());
-        logger.debug(report.toString());
+        logger.info(report.toString());
       } catch (Exception e) {
         logger.error("exception occurred when generating node report", e);
       }
@@ -351,7 +351,6 @@ public class ClusterIoTDB implements ClusterIoTDBMBean {
   }
 
   private void preInitCluster() throws StartupException {
-    stopRaftInfoReport();
     JMXService.registerMBean(this, mbeanName);
     // register MetaGroupMember. MetaGroupMember has the same position with "StorageEngine" in the
     // cluster module.