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 2026/04/14 17:57:45 UTC

(ignite) branch ignite-26850 created (now 28be8181e9b)

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

tkalkirill pushed a change to branch ignite-26850
in repository https://gitbox.apache.org/repos/asf/ignite.git


      at 28be8181e9b IGNITE-26850 wip

This branch includes the following new commits:

     new 28be8181e9b IGNITE-26850 wip

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(ignite) 01/01: IGNITE-26850 wip

Posted by tk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tkalkirill pushed a commit to branch ignite-26850
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 28be8181e9b3cfe6f6185c41cb842bf1e4ef9cba
Author: Kirill Tkalenko <tk...@yandex.ru>
AuthorDate: Tue Apr 14 20:57:23 2026 +0300

    IGNITE-26850 wip
---
 .../processors/query/schema/SchemaIndexCacheVisitorImpl.java       | 7 ++++++-
 .../ignite/internal/processors/database/RebuildIndexTest.java      | 4 ++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/schema/SchemaIndexCacheVisitorImpl.java b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/schema/SchemaIndexCacheVisitorImpl.java
index 241838f9a0e..ad24af587c9 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/query/schema/SchemaIndexCacheVisitorImpl.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/query/schema/SchemaIndexCacheVisitorImpl.java
@@ -17,8 +17,10 @@
 
 package org.apache.ignite.internal.processors.query.schema;
 
+import java.util.Comparator;
 import java.util.List;
 import java.util.Objects;
+import java.util.TreeSet;
 import java.util.concurrent.atomic.AtomicBoolean;
 import java.util.concurrent.atomic.AtomicInteger;
 import org.apache.ignite.IgniteCheckedException;
@@ -180,7 +182,10 @@ public class SchemaIndexCacheVisitorImpl implements SchemaIndexCacheVisitor {
                 cctx.cache().name(), type.schemaName(), tblName, pk)).unwrap(InlineIndex.class).totalCount());
             res.a(U.nl());
 
-            for (GridQueryIndexDescriptor descriptor : type.indexes().values()) {
+            TreeSet<GridQueryIndexDescriptor> idxDescs = new TreeSet<>(Comparator.comparing(GridQueryIndexDescriptor::name));
+            idxDescs.addAll(type.indexes().values());
+
+            for (GridQueryIndexDescriptor descriptor : idxDescs) {
                 long size = idxProc.index(new IndexName(
                     cctx.cache().name(), type.schemaName(), tblName, pk)).unwrap(InlineIndex.class).totalCount();
 
diff --git a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/database/RebuildIndexTest.java b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/database/RebuildIndexTest.java
index a8de5ee08e2..a20bf9fe668 100644
--- a/modules/indexing/src/test/java/org/apache/ignite/internal/processors/database/RebuildIndexTest.java
+++ b/modules/indexing/src/test/java/org/apache/ignite/internal/processors/database/RebuildIndexTest.java
@@ -65,8 +65,8 @@ public class RebuildIndexTest extends GridCommonAbstractTest {
             "Scanned rows 2, visited types \\[UserValue].*" +
             "Type name=UserValue.*" +
             "Index: name=_key_PK, size=2.*" +
-            "Index: name=IDX_2, size=2.*" +
-            "Index: name=IDX_1, size=2.*",
+            "Index: name=IDX_1, size=2.*" +
+            "Index: name=IDX_2, size=2.*",
         Pattern.DOTALL);
 
     /** {@inheritDoc} */