AMashenkov commented on code in PR #3170:
URL: https://github.com/apache/ignite-3/pull/3170#discussion_r1497936068


##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/RemoveIndexCommand.java:
##########
@@ -58,7 +57,11 @@ private RemoveIndexCommand(int indexId) {
 
     @Override
     public List<UpdateEntry> get(Catalog catalog) {
-        CatalogIndexDescriptor index = indexOrThrow(catalog, indexId);
+        CatalogIndexDescriptor index = catalog.index(indexId);
+
+        if (index == null) {

Review Comment:
   Seems, this is fixed in main already.



##########
modules/catalog/src/main/java/org/apache/ignite/internal/catalog/commands/RemoveIndexCommand.java:
##########
@@ -58,7 +57,11 @@ private RemoveIndexCommand(int indexId) {
 
     @Override
     public List<UpdateEntry> get(Catalog catalog) {
-        CatalogIndexDescriptor index = indexOrThrow(catalog, indexId);
+        CatalogIndexDescriptor index = catalog.index(indexId);
+
+        if (index == null) {

Review Comment:
   Seems, this is fixed in main already.
   Reverted.



-- 
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]

Reply via email to