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

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


The following commit(s) were added to refs/heads/master by this push:
     new d11974558d1 [IOTDB-6082] Improve disk space metrics (#10983)
d11974558d1 is described below

commit d11974558d14934bed5b8fbe7b30787066df5390
Author: Xiangpeng Hu <[email protected]>
AuthorDate: Tue Aug 29 16:14:26 2023 +0800

    [IOTDB-6082] Improve disk space metrics (#10983)
---
 .../iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java
index ce5cbe6d15c..80589eacb39 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/DataNodeInternalRPCServiceImpl.java
@@ -1300,6 +1300,10 @@ public class DataNodeInternalRPCServiceImpl implements 
IDataNodeRPCService.Iface
             commonConfig.getDiskSpaceWarningThreshold());
         commonConfig.setNodeStatus(NodeStatus.ReadOnly);
         commonConfig.setStatusReason(NodeStatus.DISK_FULL);
+      } else if (commonConfig.getNodeStatus().equals(NodeStatus.ReadOnly)
+          && commonConfig.getStatusReason().equals(NodeStatus.DISK_FULL)) {
+        commonConfig.setNodeStatus(NodeStatus.Running);
+        commonConfig.setStatusReason(null);
       }
     }
   }

Reply via email to