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 Tkalenko (Jira)" <ji...@apache.org> on 2023/10/25 04:17:00 UTC

[jira] [Assigned] (IGNITE-20637) Implement recovery of distributed index building

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

Kirill Tkalenko reassigned IGNITE-20637:
----------------------------------------

    Assignee: Kirill Tkalenko

> Implement recovery of distributed index building
> ------------------------------------------------
>
>                 Key: IGNITE-20637
>                 URL: https://issues.apache.org/jira/browse/IGNITE-20637
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>
> We need to take care of recovery for the distributed index construction mechanism:
> * For indexes that are *not* available for read-write:
> # Make sure that the corresponding keys are present in the metastore: *startBuildIndex.<indexId>* and *partitionBuildIndex.<indexId>.<partitionId_0>*...*partitionBuildIndex.<indexId>.<partitionId_N>*.
> *Notest:*
> This is easy to implement, since there is an auxiliary key *startBuildIndex.<indexId>*, which, in its absence, will allow you to accurately understand that there are no keys for this index in metasore.
> # For the build distributed index of a specific partition, delete key *partitionBuildIndex.<indexId>.<partitionId>* in the metastore.
> *Notest:*
> This point is probably the most difficult and requires thought before implementation, since it will most likely require raising a replication group and applying a replication log.
> # If there are no keys *partitionBuildIndex.<indexId>.<partitionId_0>*...*partitionBuildIndex.<indexId>.<partitionId_N>* in the metastore, execute *org.apache.ignite.internal.catalog.commands.MakeIndexAvailableCommand*.
> * For indexes that are available for read-write:
> # Delete key *startBuildIndex.<indexId>* in the metastore if it remains.



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