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

Ivan Bessonov updated IGNITE-23413:
-----------------------------------
    Reviewer: Alexander Lapin

> Catalog compaction. Component to determine minimum catalog version required 
> by rebalance.
> -----------------------------------------------------------------------------------------
>
>                 Key: IGNITE-23413
>                 URL: https://issues.apache.org/jira/browse/IGNITE-23413
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Pavel Pereslegin
>            Assignee: Ivan Bessonov
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Each rebalance procedure uses specific catalog version, it "holds" the 
> timestamp corresponding to the latest (at the moment of rebalancing start) 
> version of the catalog
> To be able safely perform catalog compaction, we need to design and implement 
> a component that can determine the minimum version required for active 
> rebalances (to avoid deleting this version during compaction).
> {code:java}
> interface RebalanceMinimumRequiredTimeProvider {
>     /**
>      * Returns the minimum time required for rebalance,
>      * or current timestamp if there are no active 
>      * rebalances and there is a guarantee that all rebalances
>      * launched in the future will use catalog version 
>      * corresponding to the current time or greater.
>      */
>     long minimumRequiredTime();
> }
> {code}
> The component can be either global or local (whichever is easier to 
> implement). This means that the compaction procedure can call the component 
> on all nodes in the cluster and calculate the minimum.
> The component must be able to track rebalances that may be triggered during 
> "replay" of the metastorage raft log.
> The component should return only monotonically increasing values.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to