adityamukho commented on code in PR #6939:
URL: https://github.com/apache/ignite-3/pull/6939#discussion_r2513938264
##########
modules/partition-replicator/src/main/java/org/apache/ignite/internal/partition/replicator/raft/snapshot/outgoing/OutgoingSnapshotsManager.java:
##########
@@ -290,6 +289,8 @@ public void releaseReadLock() {
@Override
public List<OutgoingSnapshot> ongoingSnapshots() {
+ assert lock.getReadHoldCount() > 0 : "Current thread does not hold
the read lock";
Review Comment:
Do we not need to enforce this check even when assertions are not enabled?
--
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]