This is an automated email from the ASF dual-hosted git repository. tanxinyu pushed a commit to branch jira5389_cp in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit eb18fea395c7daa09783278267bb325c53e5b95c Author: OneSizeFitQuorum <[email protected]> AuthorDate: Tue Jan 10 18:50:10 2023 +0800 finish 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)) {
