You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by tk...@apache.org on 2025/11/24 15:29:00 UTC

(ignite-3) 04/09: IGNITE-26849 wip

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

tkalkirill pushed a commit to branch ignite-26849
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit a4fa1f1cbf4b8760df9fbaa2f0b300027b57c579
Author: Kirill Tkalenko <tk...@yandex.ru>
AuthorDate: Tue Nov 18 14:17:10 2025 +0300

    IGNITE-26849 wip
---
 .../main/java/org/apache/ignite/raft/jraft/option/NodeOptions.java    | 3 +--
 .../org/apache/ignite/internal/ItTruncateRaftLogAndRebalanceTest.java | 4 ++--
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/modules/raft/src/main/java/org/apache/ignite/raft/jraft/option/NodeOptions.java b/modules/raft/src/main/java/org/apache/ignite/raft/jraft/option/NodeOptions.java
index 4ef8d2594d7..02070ffec56 100644
--- a/modules/raft/src/main/java/org/apache/ignite/raft/jraft/option/NodeOptions.java
+++ b/modules/raft/src/main/java/org/apache/ignite/raft/jraft/option/NodeOptions.java
@@ -88,8 +88,7 @@ public class NodeOptions extends RpcOptions implements Copiable<NodeOptions> {
     // If |snapshot_interval_s| <= 0, the time based snapshot would be disabled.
     //
     // Default: 3600 (1 hour)
-    // TODO: IGNITE-26849 Вернуть один час 3600
-    private int snapshotIntervalSecs = 5;
+    private int snapshotIntervalSecs = 3600;
 
     // A snapshot saving would be triggered every |snapshot_interval_s| seconds,
     // and at this moment when state machine's lastAppliedIndex value
diff --git a/modules/runner/src/integrationTest/java/org/apache/ignite/internal/ItTruncateRaftLogAndRebalanceTest.java b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/ItTruncateRaftLogAndRebalanceTest.java
index 8eb6971a207..b681c2e3838 100644
--- a/modules/runner/src/integrationTest/java/org/apache/ignite/internal/ItTruncateRaftLogAndRebalanceTest.java
+++ b/modules/runner/src/integrationTest/java/org/apache/ignite/internal/ItTruncateRaftLogAndRebalanceTest.java
@@ -62,7 +62,7 @@ public class ItTruncateRaftLogAndRebalanceTest extends BaseTruncateRaftLogAbstra
     }
 
     @Test
-    void test() throws Exception {
+    void testRestartNodeAfterAbortRebalanceAndTruncateRaftLog() throws Exception {
         createZoneAndTablePerson(ZONE_NAME, TABLE_NAME, 3, 1);
 
         ReplicationGroupId replicationGroupId = cluster.solePartitionId(ZONE_NAME, TABLE_NAME);
@@ -71,9 +71,9 @@ public class ItTruncateRaftLogAndRebalanceTest extends BaseTruncateRaftLogAbstra
 
         insertPeopleAndAwaitTruncateRaftLogOnAllNodes(1_000, TABLE_NAME, replicationGroupId);
 
-        // Let's restart the node with aborted rebalance.
         startAndAbortRebalance(1, TABLE_NAME, replicationGroupId);
 
+        // Let's restart the node with aborted rebalance.
         cluster.stopNode(1);
         cluster.startNode(1);