vldpyatkov commented on code in PR #1959:
URL: https://github.com/apache/ignite-3/pull/1959#discussion_r1175716902
##########
modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java:
##########
@@ -238,7 +238,10 @@ public void run() {
// The lease is expired or close to this.
if (lease.getExpirationTime().getPhysical() <
outdatedLeaseThreshold) {
- ClusterNode candidate =
nextLeaseHolder(entry.getValue(), null);
+ ClusterNode candidate = nextLeaseHolder(
+ entry.getValue(),
+ lease.isAccepted() ?
lease.getLeaseholder().name() : null
+ );
Review Comment:
Yes, it is true. All your conditions are covered by tests.
--
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]