This is an automated email from the ASF dual-hosted git repository.
sanpwc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/ignite-3.git
The following commit(s) were added to refs/heads/main by this push:
new 38af0512c3 IGNITE-21855 Fix ItIndexAndIndexStorageDestructionTest
(#3503)
38af0512c3 is described below
commit 38af0512c378640b018b1e6f5ecbe4c2f2b31d0a
Author: Roman Puchkovskiy <[email protected]>
AuthorDate: Wed Mar 27 22:30:40 2024 +0400
IGNITE-21855 Fix ItIndexAndIndexStorageDestructionTest (#3503)
---
.../ignite/internal/index/ItIndexAndIndexStorageDestructionTest.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/modules/index/src/integrationTest/java/org/apache/ignite/internal/index/ItIndexAndIndexStorageDestructionTest.java
b/modules/index/src/integrationTest/java/org/apache/ignite/internal/index/ItIndexAndIndexStorageDestructionTest.java
index 02f8d53ee9..018cf06d17 100644
---
a/modules/index/src/integrationTest/java/org/apache/ignite/internal/index/ItIndexAndIndexStorageDestructionTest.java
+++
b/modules/index/src/integrationTest/java/org/apache/ignite/internal/index/ItIndexAndIndexStorageDestructionTest.java
@@ -17,6 +17,7 @@
package org.apache.ignite.internal.index;
+import static org.apache.ignite.internal.TestWrappers.unwrapTableImpl;
import static org.apache.ignite.lang.ErrorGroups.Storage.ALREADY_DESTROYED_ERR;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.is;
@@ -71,7 +72,7 @@ class ItIndexAndIndexStorageDestructionTest extends
ClusterPerTestIntegrationTes
session.execute(null, "INSERT INTO " + TABLE_NAME + " (id, name)
VALUES (" + PREEXISTING_KEY + ", 'John')");
});
- TableImpl table = (TableImpl) node.tables().table(TABLE_NAME);
+ TableImpl table = unwrapTableImpl(node.tables().table(TABLE_NAME));
initiateIndexStoragesDestruction(table, INDEX_NAME);
}