[
https://issues.apache.org/jira/browse/IGNITE-21253?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822120#comment-17822120
]
Vladislav Pyatkov commented on IGNITE-21253:
--------------------------------------------
Merged e701d0709f42a3219fdce5e12fd425d0981123e2
> Implement a counter for number of rebalancing tables inside the zone
> ---------------------------------------------------------------------
>
> Key: IGNITE-21253
> URL: https://issues.apache.org/jira/browse/IGNITE-21253
> Project: Ignite
> Issue Type: Improvement
> Reporter: Kirill Gusakov
> Assignee: Mirza Aliev
> Priority: Major
> Labels: ignite-3
> Time Spent: 1h 50m
> Remaining Estimate: 0h
>
> *Motivation*
> According to comment we need to switch zone assignments, only when all zone
> tables finish their rebalances.
> To implement this behaviour we need to implement the metastorage counter of
> tables, which will be decreased on every successfull table rebalance.
> *Definition of done*
> - Counter of zone tables created on the rebalance start and decreased with
> every successfull table rebalance
> *Implementation notes*
> - on pending update we set the counter in metastore (if it is not exist).
> other tables can't be added because of "avoid table creation during the
> rebalance" ticket.
> - on the rebalance done instead of the current logic we decrease the counter
> (with compareAndSet).
> - the separate listener on every node listen to the counters and when it
> decreased to 0 - do the usual logic with planned->pending, pending->stable
> and etc.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)