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

caogaofei pushed a commit to branch rel/1.0
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/rel/1.0 by this push:
     new c06147e6c7 [To rel/1.0][IOTDB-5389] Cause DataNode startup to fail 
when wal_mode is disabled in IoTConsensus (#8817)
c06147e6c7 is described below

commit c06147e6c70569ab69b6c3062afb4e770e597f17
Author: Potato <[email protected]>
AuthorDate: Tue Jan 10 20:53:58 2023 +0800

    [To rel/1.0][IOTDB-5389] Cause DataNode startup to fail when wal_mode is 
disabled in IoTConsensus (#8817)
    
    Signed-off-by: OneSizeFitQuorum <[email protected]>
    
    Signed-off-by: OneSizeFitQuorum <[email protected]>
---
 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 9cc4eadad4..7c14e6cf08 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
@@ -303,6 +303,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)) {

Reply via email to