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/10/16 07:38:42 UTC

(ignite-3) 01/01: IGNITE-16782 wip

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

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

commit 7fa6542506cfecc6ed3a6003251376a498766f5f
Author: Kirill Tkalenko <tk...@yandex.ru>
AuthorDate: Thu Oct 16 10:38:18 2025 +0300

    IGNITE-16782 wip
---
 .../ignite/internal/table/distributed/storage/InternalTableImpl.java | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java b/modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java
index bd2e079ec7d..1c35e02b388 100644
--- a/modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java
+++ b/modules/table/src/main/java/org/apache/ignite/internal/table/distributed/storage/InternalTableImpl.java
@@ -18,6 +18,7 @@
 package org.apache.ignite.internal.table.distributed.storage;
 
 import static it.unimi.dsi.fastutil.ints.Int2ObjectMaps.emptyMap;
+import static it.unimi.dsi.fastutil.ints.Int2ObjectMaps.unmodifiable;
 import static java.util.concurrent.CompletableFuture.allOf;
 import static java.util.concurrent.CompletableFuture.completedFuture;
 import static java.util.concurrent.CompletableFuture.failedFuture;
@@ -2329,8 +2330,8 @@ public class InternalTableImpl implements InternalTable {
             previousSafeTimeTracker = newSafeTimeTrackerMap.put(partitionId, newSafeTimeTracker);
             previousStorageIndexTracker = newStorageIndexTrackerMap.put(partitionId, newStorageIndexTracker);
 
-            safeTimeTrackerByPartitionId = newSafeTimeTrackerMap;
-            storageIndexTrackerByPartitionId = newStorageIndexTrackerMap;
+            safeTimeTrackerByPartitionId = unmodifiable(newSafeTimeTrackerMap);
+            storageIndexTrackerByPartitionId = unmodifiable(newStorageIndexTrackerMap);
         }
 
         if (previousSafeTimeTracker != null) {