sashapolo commented on code in PR #3352:
URL: https://github.com/apache/ignite-3/pull/3352#discussion_r1514595552
##########
modules/storage-api/src/main/java/org/apache/ignite/internal/storage/util/MvPartitionStorages.java:
##########
@@ -432,6 +432,23 @@ private String
createStorageInProgressOfRebalanceErrorMessage(int partitionId) {
return null;
}
+ /**
+ * Returns a list of all existing storages.
+ */
+ public List<T> getAll() {
Review Comment:
Fixed
##########
modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/AbstractPageMemoryTableStorage.java:
##########
@@ -180,7 +180,19 @@ public HashIndexStorage getOrCreateHashIndex(int
partitionId, StorageHashIndexDe
@Override
public CompletableFuture<Void> destroyIndex(int indexId) {
- throw new UnsupportedOperationException("Not implemented yet");
+ return busy(() -> {
+ List<AbstractPageMemoryMvPartitionStorage> storages =
mvPartitionStorages.getAll();
+
+ var destroyFutures = new CompletableFuture[storages.size()];
+
+ for (int i = 0; i < storages.size(); i++) {
+ AbstractPageMemoryMvPartitionStorage storage = storages.get(i);
+
+ destroyFutures[i] = storage.runConsistently(locker ->
storage.destroyIndex(indexId));
Review Comment:
Fixed, I guess
--
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]