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/02/05 10:53:26 UTC

(ignite-3) branch ignite-24407-debug updated: IGNITE-24407 add logs #1.2

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

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


The following commit(s) were added to refs/heads/ignite-24407-debug by this push:
     new ac77a3c7424 IGNITE-24407 add logs #1.2
ac77a3c7424 is described below

commit ac77a3c7424be7813bed61ced018bb8b91ea24ed
Author: Kirill Tkalenko <tk...@yandex.ru>
AuthorDate: Wed Feb 5 13:53:17 2025 +0300

    IGNITE-24407 add logs #1.2
---
 .../internal/cluster/management/raft/ClusterStateStorageManager.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ClusterStateStorageManager.java b/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ClusterStateStorageManager.java
index 304a1b20a5f..2c7323b563d 100644
--- a/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ClusterStateStorageManager.java
+++ b/modules/cluster-management/src/main/java/org/apache/ignite/internal/cluster/management/raft/ClusterStateStorageManager.java
@@ -149,6 +149,8 @@ public class ClusterStateStorageManager {
     CompletableFuture<Void> snapshot(Path snapshotPath) {
         LOG.error(">>>>> Create snapshot: {}", new Throwable(), snapshotPath);
 
+        getClusterState();
+
         return storage.snapshot(snapshotPath);
     }
 
@@ -159,7 +161,10 @@ public class ClusterStateStorageManager {
      */
     void restoreSnapshot(Path snapshotPath) {
         LOG.error(">>>>> Restore snapshot: {}", new Throwable(), snapshotPath);
+        getClusterState();
 
         storage.restoreSnapshot(snapshotPath);
+
+        getClusterState();
     }
 }