This is an automated email from the ASF dual-hosted git repository.
wangchao316 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 66ebb0b57d8 [IOTDB-6167] DataNode can't register to cluster when fetch
system configuration throws NPE(#11187)
66ebb0b57d8 is described below
commit 66ebb0b57d8d64c894833a0ac8ae653a8ad5b1bd
Author: QiangShaowei <[email protected]>
AuthorDate: Fri Sep 22 09:13:13 2023 +0800
[IOTDB-6167] DataNode can't register to cluster when fetch system
configuration throws NPE(#11187)
[IOTDB-6167] DataNode can't register to cluster when fetch system
configuration throws NPE
---
.../datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
index 14bbe92a030..038996a9c6d 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/service/DataNode.java
@@ -266,7 +266,9 @@ public class DataNode implements DataNodeMBean {
retry = -1;
}
}
- if (configurationResp == null) {
+ if (configurationResp == null
+ || !configurationResp.isSetStatus()
+ || configurationResp.getStatus().getCode() !=
TSStatusCode.SUCCESS_STATUS.getStatusCode()) {
// All tries failed
logger.error(
"Cannot pull system configurations from ConfigNode-leader after {}
retries",