ascherbakoff commented on code in PR #7799:
URL: https://github.com/apache/ignite-3/pull/7799#discussion_r3057443373


##########
modules/transactions/src/main/java/org/apache/ignite/internal/tx/impl/HeapLockManager.java:
##########
@@ -104,14 +111,18 @@ public class HeapLockManager extends 
AbstractEventProducer<LockEvent, LockEventP
     private Executor delayedExecutor;
 
     /** Enlisted transactions. */
-    private final ConcurrentHashMap<UUID, ConcurrentLinkedQueue<Releasable>> 
txMap = new ConcurrentHashMap<>(1024);
+    private final ConcurrentHashMap<UUID, SealableQueue> txMap = new 
ConcurrentHashMap<>(1024);
 
     /** Coarse locks. */
     private final ConcurrentHashMap<Object, CoarseLockState> coarseMap = new 
ConcurrentHashMap<>();
 
     /** Tx state required to present tx labels in logs and exceptions. */
     private final VolatileTxStateMetaStorage txStateVolatileStorage;
 
+    private static class SealableQueue extends 
ConcurrentLinkedQueue<Releasable> {
+        boolean sealed;

Review Comment:
   🆗 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to