vldpyatkov commented on code in PR #1871:
URL: https://github.com/apache/ignite-3/pull/1871#discussion_r1164475344


##########
modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/LeaseUpdater.java:
##########
@@ -179,24 +240,32 @@ public void run() {
 
                     Lease lease = leaseTracker.getLease(grpId);
 
+                    if (!lease.isAccepted()) {
+                        LeaseAgreement agreement = 
leaseConciliator.conciliated(grpId);
+
+                        if (agreement.isAccepted()) {
+                            acceptLeasInMetaStorage(grpId, lease);
+                        }
+                    }

Review Comment:
   Here, checking a lease is not required because, because we cannot update the 
corresponded entry in Meta storage if it is not actual.



-- 
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]

Reply via email to