vldpyatkov commented on code in PR #2003:
URL: https://github.com/apache/ignite-3/pull/2003#discussion_r1183353095
##########
modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/leases/Lease.java:
##########
@@ -95,7 +111,20 @@ public Lease acceptLease(HybridTimestamp to) {
+ "leaseholder=" + leaseholder
+ ", expirationTime=" + expirationTime + ']';
- return new Lease(leaseholder, startTime, to, true);
+ return new Lease(leaseholder, startTime, to, true, true);
+ }
+
+ /**
+ * Denies the lease.
+ *
+ * @return Denied lease.
+ */
+ public Lease denyLease() {
+ assert accepted : "The lease is not accepted ["
+ + "leaseholder=" + leaseholder
+ + ", expirationTime=" + expirationTime + ']';
+
+ return new Lease(leaseholder, startTime, expirationTime, false, true);
Review Comment:
I added log messages.
--
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]