keith-turner commented on code in PR #5786:
URL: https://github.com/apache/accumulo/pull/5786#discussion_r2286190413
##########
core/src/test/java/org/apache/accumulo/core/fate/zookeeper/DistributedReadWriteLockTest.java:
##########
@@ -146,10 +149,69 @@ public void testLock() throws Exception {
}
}
+ private DistributedLock recover(QueueLock queueLock, FateId fateId,
LockRange expectedRange,
+ LockType expectedType) {
+ var dlock = DistributedReadWriteLock.recoverLock(queueLock, fateId);
+ assertEquals(expectedRange, dlock.getRange());
+ assertEquals(expectedType, dlock.getType());
+ return dlock;
+ }
+
+ @Test
+ public void testRanges() {
Review Comment:
added a test in ffdc5fb1a806c55ed1c2c3c738ecfeaae5116e35
--
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]