You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by tk...@apache.org on 2022/10/14 10:42:49 UTC

[ignite-3] branch main updated: IGNITE-17903 Remove random index names from AbstractSortedIndexTest (#1210)

This is an automated email from the ASF dual-hosted git repository.

tkalkirill 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 c97a3d8156 IGNITE-17903 Remove random index names from AbstractSortedIndexTest (#1210)
c97a3d8156 is described below

commit c97a3d815605018064506d22bac55cbc5a6649f1
Author: Alexander Polovtcev <al...@gmail.com>
AuthorDate: Fri Oct 14 13:42:43 2022 +0300

    IGNITE-17903 Remove random index names from AbstractSortedIndexTest (#1210)
---
 .../storage/index/AbstractSortedIndexStorageTest.java       | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

diff --git a/modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/index/AbstractSortedIndexStorageTest.java b/modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/index/AbstractSortedIndexStorageTest.java
index fde893d544..a6b24af184 100644
--- a/modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/index/AbstractSortedIndexStorageTest.java
+++ b/modules/storage-api/src/testFixtures/java/org/apache/ignite/internal/storage/index/AbstractSortedIndexStorageTest.java
@@ -27,7 +27,6 @@ import static org.apache.ignite.internal.storage.index.SortedIndexStorage.GREATE
 import static org.apache.ignite.internal.storage.index.SortedIndexStorage.GREATER_OR_EQUAL;
 import static org.apache.ignite.internal.storage.index.SortedIndexStorage.LESS;
 import static org.apache.ignite.internal.storage.index.SortedIndexStorage.LESS_OR_EQUAL;
-import static org.apache.ignite.internal.testframework.IgniteTestUtils.randomString;
 import static org.apache.ignite.internal.testframework.matchers.CompletableFutureMatcher.willCompleteSuccessfully;
 import static org.hamcrest.CoreMatchers.equalTo;
 import static org.hamcrest.CoreMatchers.is;
@@ -240,7 +239,7 @@ public abstract class AbstractSortedIndexStorageTest {
                 column(ColumnType.INT32.typeSpec().name(), ColumnType.INT32).asNullable(false).build()
         );
 
-        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex("TEST_INDEX")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).asc().done()
                 .build();
@@ -286,7 +285,7 @@ public abstract class AbstractSortedIndexStorageTest {
                 column(ColumnType.INT32.typeSpec().name(), ColumnType.INT32).asNullable(false).build()
         );
 
-        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex("TEST_INDEX")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).asc().done()
                 .build();
@@ -318,7 +317,7 @@ public abstract class AbstractSortedIndexStorageTest {
                 column(ColumnType.INT32.typeSpec().name(), ColumnType.INT32).asNullable(false).build()
         );
 
-        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex("TEST_INDEX")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).asc().done()
                 .build();
@@ -356,7 +355,7 @@ public abstract class AbstractSortedIndexStorageTest {
                 column(ColumnType.INT32.typeSpec().name(), ColumnType.INT32).asNullable(false).build()
         );
 
-        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition indexDefinition = SchemaBuilders.sortedIndex("TEST_INDEX")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).asc().done()
                 .build();
@@ -460,12 +459,12 @@ public abstract class AbstractSortedIndexStorageTest {
                 column(ColumnType.INT32.typeSpec().name(), ColumnType.INT32).asNullable(false).build()
         );
 
-        SortedIndexDefinition index1Definition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition index1Definition = SchemaBuilders.sortedIndex("TEST_INDEX_1")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).asc().done()
                 .build();
 
-        SortedIndexDefinition index2Definition = SchemaBuilders.sortedIndex(randomString(random, 10))
+        SortedIndexDefinition index2Definition = SchemaBuilders.sortedIndex("TEST_INDEX_2")
                 .addIndexColumn(columns.get(0).name()).asc().done()
                 .addIndexColumn(columns.get(1).name()).desc().done()
                 .build();