tkalkirill commented on code in PR #2756:
URL: https://github.com/apache/ignite-3/pull/2756#discussion_r1374806926


##########
modules/index/src/main/java/org/apache/ignite/internal/index/IndexAvailabilityController.java:
##########
@@ -73,37 +73,38 @@
  *
  * <p>An approximate algorithm for making an index available:</p>
  * <ul>
- *     <li>On {@link CatalogEvent#INDEX_CREATE}, keys are created in the 
metastore: {@code indexBuild.inProgress.<indexId>} and
- *     {@code indexBuild.partition.<indexId>.<partitionId_0>}...{@code 
indexBuild.partition.<indexId>.<partitionId_N>}.</li>
+ *     <li>On {@link CatalogEvent#INDEX_CREATE},
+ *     {@link 
IndexManagementUtils#putBuildIndexMetastoreKeysIfAbsent(MetaStorageManager, 
int, int) index building keys} are created in the
+ *     metastore.</li>
  *     <li>Then it is expected that the distributed index building event will 
be triggered for all partitions via
- *     {@link IndexBuildCompletionListener} (from {@link 
IndexBuilder#listen}); as a result of each of these events, the corresponding 
key
- *     {@code indexBuild.partition.<indexId>.<partitionId>} will be deleted 
from metastore.</li>
- *     <li>When all the {@code indexBuild.partition.<indexId>.<partitionId>} 
keys in the metastore are deleted,
- *     {@link MakeIndexAvailableCommand} will be executed for the 
corresponding index.</li>
- *     <li>At {@link CatalogEvent#INDEX_AVAILABLE}, key {@code 
indexBuild.inProgress.<indexId>} in the metastore will be deleted.</li>
+ *     {@link IndexBuildCompletionListener} (from {@link 
IndexBuilder#listen}); as a result of each of these events, the corresponding
+ *     {@link IndexManagementUtils#partitionBuildIndexMetastoreKey(int, int) 
partition building index key} will be deleted from
+ *     metastore.</li>
+ *     <li>When <b>all</b> the {@link 
IndexManagementUtils#partitionBuildIndexMetastoreKey(int, int) buildig index 
key partition} in the
+ *     metastore are deleted, {@link MakeIndexAvailableCommand} will be 
executed for the corresponding index.</li>
+ *     <li>At {@link CatalogEvent#INDEX_AVAILABLE},
+ *     {@link IndexManagementUtils#inProgressBuildIndexMetastoreKey(int) in 
progress building index key} in the metastore will be

Review Comment:
   fix it



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to