tkalkirill commented on code in PR #4822:
URL: https://github.com/apache/ignite-3/pull/4822#discussion_r1867941763


##########
modules/replicator/src/main/java/org/apache/ignite/internal/replicator/ReplicaManager.java:
##########
@@ -1707,4 +1707,16 @@ private static ReplicationGroupIdMessage 
toReplicationGroupIdMessage(Replication
 
         throw new AssertionError("Not supported: " + replicationGroupId);
     }
+
+    private boolean enterBusy() {
+        return !busyLock.isWriteLockedByCurrentThread() && 
busyLock.readLock().tryLock();
+    }
+
+    private void leaveBusy() {
+        busyLock.readLock().unlock();
+    }
+
+    private void blockBusy() {
+        busyLock.writeLock().lock();
+    }

Review Comment:
   I don't think so, it's not a busy lock.
   If we need it in the future, it would be better to make a new busy lock 
based on IgniteStripedReadWriteLock.



-- 
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