sanpwc commented on code in PR #5774:
URL: https://github.com/apache/ignite-3/pull/5774#discussion_r2079802253


##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/TableManager.java:
##########
@@ -428,7 +431,10 @@ public class TableManager implements IgniteTablesInternal, 
IgniteComponent {
 
     private final CompletableFuture<Void> readyToProcessReplicaStarts = new 
CompletableFuture<>();
 
-    private final Map<Integer, Set<TableImpl>> tablesPerZone = new 
ConcurrentHashMap<>();
+    /** Mapping zone identifier to a collection of tables related to the zone. 
*/
+    private final Map<Integer, Set<TableImpl>> tablesPerZone = new HashMap<>();
+    /** Locks to synchronize an access to the {@link #tablesPerZone}. */
+    private final Map<Integer, StampedLock> tablesPerZoneLocks = new 
ConcurrentHashMap<>();

Review Comment:
   Where do we remove elements from the `tablesPerZoneLocks`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to