You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ib...@apache.org on 2023/11/03 10:53:57 UTC
(ignite-3) branch main updated: IGNITE-20786 Disable Logit log storage by default (#2788)
This is an automated email from the ASF dual-hosted git repository.
ibessonov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new b80a1b02ec IGNITE-20786 Disable Logit log storage by default (#2788)
b80a1b02ec is described below
commit b80a1b02ec37e3110bcf86879dbbe7e7411fd16a
Author: Ivan Bessonov <be...@gmail.com>
AuthorDate: Fri Nov 3 13:53:50 2023 +0300
IGNITE-20786 Disable Logit log storage by default (#2788)
---
.../org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java b/modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java
index d5aadc784d..8b2404eb59 100644
--- a/modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java
+++ b/modules/raft/src/main/java/org/apache/ignite/internal/raft/server/impl/JraftServerImpl.java
@@ -101,7 +101,7 @@ import org.jetbrains.annotations.TestOnly;
*/
public class JraftServerImpl implements RaftServer {
/**
- * Enables logit log storage. {@code true} by default.
+ * Enables logit log storage. {@code false} by default.
* This is a temporary property, that should only be used for testing and comparing the two storages.
*/
public static final String LOGIT_STORAGE_ENABLED_PROPERTY = "LOGIT_STORAGE_ENABLED";
@@ -177,7 +177,7 @@ public class JraftServerImpl implements RaftServer {
this.service = service;
this.dataPath = dataPath;
this.nodeManager = new NodeManager();
- this.logStorageFactory = IgniteSystemProperties.getBoolean(LOGIT_STORAGE_ENABLED_PROPERTY, true)
+ this.logStorageFactory = IgniteSystemProperties.getBoolean(LOGIT_STORAGE_ENABLED_PROPERTY, false)
? new LogitLogStorageFactory(dataPath.resolve("log"), getLogOptions())
: new DefaultLogStorageFactory(dataPath.resolve("log"));
this.opts = opts;