This is an automated email from the ASF dual-hosted git repository.
caogaofei 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 43cd37bdcf [IOTDB-5389] Cause DataNode startup to fail when wal_mode
is disabled in IoTConsensus (#8798)
43cd37bdcf is described below
commit 43cd37bdcf18534a7457988563e99715e8132ce0
Author: Potato <[email protected]>
AuthorDate: Tue Jan 10 20:54:26 2023 +0800
[IOTDB-5389] Cause DataNode startup to fail when wal_mode is disabled in
IoTConsensus (#8798)
---
server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
index bc0bd52949..48b4e30f6f 100644
--- a/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
+++ b/server/src/main/java/org/apache/iotdb/db/conf/IoTDBStartCheck.java
@@ -304,6 +304,12 @@ public class IoTDBStartCheck {
systemProperties.forEach((k, v) -> properties.setProperty(k, v.get()));
properties.store(outputStream, SYSTEM_PROPERTIES_STRING);
}
+ if (config.isClusterMode()
+ &&
config.getDataRegionConsensusProtocolClass().equals(ConsensusFactory.IOT_CONSENSUS)
+ && config.getWalMode().equals(WALMode.DISABLE)) {
+ throw new ConfigurationException(
+ "Configuring the WALMode as disable is not supported under
IoTConsensus");
+ }
} else {
// check whether upgrading from <=v0.9
if (!properties.containsKey(IOTDB_VERSION_STRING)) {