Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
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.
Attachments
Issue Links
- is blocked by
-
IGNITE-19276 Implement a mechanism to build indices distributively
- Resolved
- links to