kgusakov commented on code in PR #4675: URL: https://github.com/apache/ignite-3/pull/4675#discussion_r1836491354
########## modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java: ########## @@ -1255,6 +1322,22 @@ public synchronized void rescheduleScaleDown(long delay, Runnable runnable, int scaleDownTaskDelay = delay; } + /** + * Reschedules existing partition distribution reset task, if it is not started yet and the delay of this task is not immediate, + * or schedules new one, if the current task cannot be canceled. + * + * @param delay Delay to start runnable in seconds. + * @param runnable Custom logic to run. + * @param zoneId Unique id of a zone to determine the executor of the task. + */ + public synchronized void reschedulePartitionDistributionReset(long delay, Runnable runnable, int zoneId) { Review Comment: added ########## modules/distribution-zones/src/main/java/org/apache/ignite/internal/distributionzones/DistributionZoneManager.java: ########## @@ -1174,12 +1235,18 @@ public static class ZoneState { /** Schedule task for a scale down process. */ private ScheduledFuture<?> scaleDownTask; + /** Schedule task for a partition distribution reset process. */ + private ScheduledFuture<?> partitionDistributionResetTask; Review Comment: Yep, added -- 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: notifications-unsubscr...@ignite.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org