vldpyatkov commented on code in PR #3422:
URL: https://github.com/apache/ignite-3/pull/3422#discussion_r1562383712
##########
modules/placement-driver/src/main/java/org/apache/ignite/internal/placementdriver/negotiation/LeaseAgreement.java:
##########
@@ -116,6 +117,19 @@ public String getRedirectTo() {
return resp != null ? resp.redirectProposal() : null;
}
+ /**
+ * The lease was considered by the set of replication subgroups.
+ *
+ * @return A set of applied groups.
+ */
+ public Set<ReplicationGroupId> applicableFor() {
+ assert ready() : "The method should be invoked only after the
agreement is ready";
Review Comment:
This method has to be invoked only after the argument is ready. Like other
methods in the class, for example, 'getRedirectTo'.
--
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]