ibessonov commented on code in PR #6939:
URL: https://github.com/apache/ignite-3/pull/6939#discussion_r2513949397
##########
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:
It's not necessary, here I only use it as a copy of the statement in
documentation. Such assertion is only necessary for developers to catch
mistakes while writing new code, in other words
--
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]