Kirill Tkalenko created IGNITE-21560:
----------------------------------------
Summary: Add schema sync before apply BuildIndexCommand
Key: IGNITE-21560
URL: https://issues.apache.org/jira/browse/IGNITE-21560
Project: Ignite
Issue Type: Improvement
Reporter: Kirill Tkalenko
Now, before applying the
*org.apache.ignite.internal.table.distributed.command.BuildIndexCommand* in
*org.apache.ignite.internal.table.distributed.raft.PartitionListener#handleBuildIndexCommand*,
we wait for the index to appear through the internal mechanism, and it is
enough to reuse the existing schema synchronization and inherit from the
*org.apache.ignite.internal.table.distributed.command.CatalogVersionAware* and
pass into it catalog version in which the index get the
*org.apache.ignite.internal.catalog.descriptors.CatalogIndexStatus#BUILDING*.
Also, I think we will need to skip the *BuildIndexCommand* if the index has
been removed from the catalog at the time the command is applied.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)