tkalkirill commented on code in PR #3177:
URL: https://github.com/apache/ignite-3/pull/3177#discussion_r1482530229
##########
modules/table/src/main/java/org/apache/ignite/internal/table/distributed/index/IndexUpdateHandler.java:
##########
@@ -143,20 +154,58 @@ public void buildIndex(int indexId,
Stream<BinaryRowAndRowId> rowStream, @Nullab
index.storage().setNextRowIdToBuild(nextRowIdToBuild);
}
- /**
- * Waits for indexes to be created.
- */
+ /** Waits for indexes to be created. */
// TODO: IGNITE-19513 Fix it, we should have already waited for the
indexes to be created
public void waitIndexes() {
indexes.get();
}
- /**
- * Waits for the specific index to be created.
- */
+ /** Waits for the specific index to be created. */
public void waitForIndex(int indexId) {
indexes.addIndexToWaitIfAbsent(indexId);
waitIndexes();
}
+
+ private Iterable<TableSchemaAwareIndexStorage> indexes(@Nullable
List<Integer> indexIds) {
+ Map<Integer, TableSchemaAwareIndexStorage> indexStorageById =
indexes.get();
+
+ assert !indexStorageById.isEmpty();
+
+ if (indexIds == null) {
+ return indexStorageById.values();
+ }
+
+ return mapIterable(indexIds, indexId -> {
Review Comment:
What was available =)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]