You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kirill Gusakov (Jira)" <ji...@apache.org> on 2024/02/13 14:27:00 UTC

[jira] [Updated] (IGNITE-21253) Implement a counter for number of rebalancing tables inside the zone

     [ https://issues.apache.org/jira/browse/IGNITE-21253?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirill Gusakov updated IGNITE-21253:
------------------------------------
    Description: 
*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.

 

  was:
*Motivation*
According to [comment|https://issues.apache.org/jira/browse/IGNITE-18991?focusedCommentId=17806657&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17806657] 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



> 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
>
> *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)