vldpyatkov commented on code in PR #1871:
URL: https://github.com/apache/ignite-3/pull/1871#discussion_r1156926328
##########
modules/placement-driver/src/integrationTest/java/org/apache/ignite/internal/placementdriver/PlacementDriverManagerTest.java:
##########
@@ -321,6 +449,45 @@ private void checkLeaseCreated(TablePartitionId grpPartId)
throws InterruptedExc
}, 10_000));
}
+ /**
+ * Checks that the lease for the group is accepted.
+ *
+ * @param grpPartId Replication group id.
+ * @throws InterruptedException If the waiting is interrupted.
+ */
+ private void checkAccepted(TablePartitionId grpPartId) throws
InterruptedException {
+ assertTrue(waitForCondition(() -> {
Review Comment:
Here is a waiting of the lease creation. Of course, it is possible to create
an infinity loop and complete a future after the loop found the lease, but that
will be another code.
--
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]