You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Alexander Lapin (Jira)" <ji...@apache.org> on 2024/12/20 14:14:00 UTC
[jira] [Resolved] (IGNITE-23857) Do not process absent groups in cluster in lease updater
[ https://issues.apache.org/jira/browse/IGNITE-23857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander Lapin resolved IGNITE-23857.
--------------------------------------
Resolution: Not A Bug
> Do not process absent groups in cluster in lease updater
> --------------------------------------------------------
>
> Key: IGNITE-23857
> URL: https://issues.apache.org/jira/browse/IGNITE-23857
> Project: Ignite
> Issue Type: Improvement
> Reporter: Vladislav Pyatkov
> Priority: Major
> Labels: ignite-3
>
> h3.Motivation
> We are getting rid of expired leases (for removed replication groups) in the common cycle of maintenance of the leases.
> > LeaseUpdater.Updater#updateLeaseBatchInternal
> In a case when all replication groups are removed, we add this code to no miss update:
> {code}
> boolean emptyAssignments = aggregatedStableAndPendingAssignmentsByGroups.isEmpty();
> if (renewedLeases.isEmpty() && (!emptyAssignments || leasesCurrent.leaseByGroupId().isEmpty())) {
> LOG.debug("No leases to update found.");
> return;
> }
> {code}
> We can simplify the condition:
> {code}
> renewedLeases.isEmpty()
> {code}
> but in this case we will store expired leases until the new one does not appear.
> h3.Definition of done
> Make the condition simpler.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)