Skip to content

IGNITE-28907 Disallow mixing query entity configuration APIs and use last-call-wins semantics - #13583

Merged
zstan merged 19 commits into
apache:masterfrom
oleg-vlsk:IGNITE-28907
Nov 3, 2026
Merged

zstan merged 19 commits into
apache:masterfrom
oleg-vlsk:IGNITE-28907

Conversation

@oleg-vlsk

Copy link
Copy Markdown
Contributor

Thank you for submitting the pull request to the Apache Ignite.

In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:

The Contribution Checklist

  • There is a single JIRA ticket related to the pull request.
  • The web-link to the pull request is attached to the JIRA ticket.
  • The JIRA ticket has the Patch Available state.
  • The pull request body describes changes that have been made.
    The description explains WHAT and WHY was made instead of HOW.
  • The pull request title is treated as the final commit message.
    The following pattern must be used: IGNITE-XXXX Change summary where XXXX - number of JIRA issue.
  • A reviewer has been mentioned through the JIRA comments
    (see the Maintainers list)
  • The pull request has been checked by the Teamcity Bot and
    the green visa attached to the JIRA ticket (see tab PR Check at TC.Bot - Instance 1 or TC.Bot - Instance 2)

Notes

If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9344108 · 147 suites ran, 0 reused

⚠️ This run doesn't cover the PR fully:

  • 2 suite(s) have no reliable result (compilation error, timeout, crash)
  • 1 suite(s) ran far fewer tests than the same suites on master
  • a newer run is still going — its unfinished suites can still fail

Everything below is what it did manage to say.

⚠️ 2 broken suite(s) (no reliable run):

  • Platform C++ CMake (Linux Clang): IgniteOdbcTest terminated abnormally - the test binary died, its remaining tests never ran · Number of tests 595 is 43% less than 1047 in build #43233 — ran 595 of master's 1047 tests
  • Platform C++ CMake (Win x64 | Release): non-zero exit code · Number of tests 465 is 56% less than 1047 in build #19133 — ran 465 of master's 1047 tests

🔍 1 suite(s) ran fewer tests than on master (tests that never ran can't fail):

  • Platform C++ CMake (Linux): 595 tests vs 1047 on master (−43%)

❌ 8 blocker(s) in 5 suite(s):

  • ZooKeeper (Discovery) 1: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite1: org.apache.ignite.spi.discovery.zk.internal.ZookeeperDiscoverySplitBrainTest.testSimpleSplitBrain
  • ZooKeeper (Discovery) 1: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite1: org.apache.ignite.spi.discovery.zk.internal.ZookeeperDiscoverySplitBrainTest.testAlmostSplitBrain
  • ZooKeeper (Discovery) 1: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite1: org.apache.ignite.spi.discovery.zk.internal.ZookeeperDiscoverySplitBrainTest.testNotActualSplitBrain
  • Platform .NET (Core Linux): Apache.Ignite.Core.Tests.DotNetCore: Apache.Ignite.Core.Tests.Client.Services.ServicesAwarenessTests.TestClusterTopologyChanges("PlatformTestService")
  • Index Query API: org.apache.ignite.cache.query.IndexQueryTestSuite: org.apache.ignite.cache.query.IndexQueryRangeTest.testRangeQueries[qryPar=1 atomicity=TRANSACTIONAL mode=REPLICATED node=CRD backups=0 idxName=PERSON_ID_IDX duplicates=1]
  • Queries 6: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite6: org.apache.ignite.internal.processors.cache.index.DuplicateKeyValueClassesSelfTest.testDuplicateValueClass
  • PDS (Indexing): org.apache.ignite.testsuites.IgnitePdsWithIndexingCoreTestSuite: org.apache.ignite.internal.processors.cache.persistence.db.wal.IgniteWalRebalanceTest.testWithLocalWalChange
  • PDS (Indexing): org.apache.ignite.testsuites.IgnitePdsWithIndexingCoreTestSuite: org.apache.ignite.internal.processors.cache.persistence.IgnitePdsCorruptedIndexTest.testCorruption

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

One or more issues must be addressed before approval.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Adds QueryEntity metadata merging across CacheConfiguration calls, including fields, indexes, and type conflicts.

Changes:

  • Introduces QueryEntityMerger.
  • Updates configuration merging behavior and conflict validation.
  • Adds comprehensive tests and adjusts indexing tests.
File summaries
File Description
modules/indexing/src/test/java/org/apache/ignite/testsuites/IgniteCacheWithIndexingTestSuite.java Updated as part of this pull request.
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePdsIndexingDefragmentationTest.java Updated as part of this pull request.
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/index/DuplicateKeyValueClassesSelfTest.java Updated as part of this pull request.
modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/CacheConfigurationQueryEntityMergeTest.java Updated as part of this pull request.
modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePdsCorruptedIndexTest.java Updated as part of this pull request.
modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryEntityMerger.java Updated as part of this pull request.
modules/core/src/main/java/org/apache/ignite/configuration/CacheConfiguration.java Updated as part of this pull request.
Review details

Suppressed comments (3)

modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryEntityMerger.java:73

  • With the default sqlEscapeAll=false, QueryUtils.normalizeObjectName uppercases table names before schema creation. Comparing the raw values here makes otherwise compatible fragments using Person and PERSON conflict even though they resolve to the same SQL table, so configuration fails before normalization; use the cache's SQL escaping/normalization policy when comparing this property.
        res.setTableName(mergeProperty("tableName", ex.getTableName(), in.getTableName()));

modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryEntityMerger.java:245

  • The map is keyed by the effective name from QueryUtils.indexName, but QueryIndex.equals also compares the raw name field. Consequently, an unnamed index and an explicitly named index whose name equals the generated name hit the same map entry and are always reported as conflicting, although normalization produces the same index. Compare canonical index definitions rather than the raw object equality here.
            if (!existingIdx.equals(incomingIdx))
                throw mergeConflict("index[" + idxName + ']', existingIdx, incomingIdx);

modules/core/src/main/java/org/apache/ignite/internal/processors/query/QueryEntityMerger.java:97

  • This compares raw key type names, so a supported primitive declaration such as QueryEntity.setKeyType("int") conflicts with setIndexedTypes(Integer.class, ...), even though setIndexedTypes boxes primitive classes and QueryUtils explicitly resolves/boxes primitive key types. Canonicalize resolved key types before deciding they conflict, while retaining support for non-loadable binary type names.
        if (exKeyType != null && inKeyType != null && !Objects.equals(exKeyType, inKeyType)) {
  • Files reviewed: 7/7 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.


/** Query entities with different value types must not be merged. */
@Test
public void testDifferentValueTypesAreNotMerged() throws Exception {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

naming confusing, i see test for public API - this test - how it need\plan to work. I mean - one cache can contain numerous of different QueryEntitys, isnt it ? This test need to work perfectly well without your changes i suppose, if i`m right - you need to rename it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, we can have entities with the same key type, but with different value type. You’re right, this was working correctly before my changes. This is actually a regression test: I think it’s important to make sure that QueryEntityMerger doesn’t try to merge such entities and doesn’t view them as a conflict. I changed the name and javadoc to make it more obvious.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9382694 · 147 suites ran, 0 reused

👀 489 test(s) started failing on this code — not proven blockers yet: too few runs of this revision to tell a break from a flake, so a re-run of the suite decides it.

  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testLocalQueryWithoutExplicitFlag
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testDistributedQuery
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testToString
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testLostIterator
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testClientOnlyNode
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testNodeLeft
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testLocalQueryWithExplicitFlag
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testIterator
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testTwoObjectsTextSearch
  • ZooKeeper (Discovery) 4: org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.testIllegalBounds
    … and 479 more

❌ 3 blocker(s) in 3 suite(s):

  • Queries 3: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite3: org.apache.ignite.internal.processors.query.h2.sql.BaseH2CompareQueryTest.
  • Queries 4: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite4: org.apache.ignite.internal.processors.query.h2.twostep.NoneOrSinglePartitionsQueryOptimizationsTest.
  • Queries 5: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite5: org.apache.ignite.internal.processors.query.IgniteCacheGroupsCompareQueryTest.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9384769 · 147 suites ran, 0 reused

⚠️ This run doesn't cover the PR fully:

  • the RunAll was interrupted — 137 suite(s) never ran
  • 8 suite(s) have no reliable result (compilation error, timeout, crash)

Everything below is what it did manage to say.

⚠️ 8 broken suite(s) (no reliable run):

  • Platform .NET (Core Linux): failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Thin client: Node.js: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Thin client: PHP: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Thin client: Python: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Build: non-zero exit code

  • Platform .NET (Windows): failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Platform .NET (Windows) 2: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>
  • Platform .NET (Windows) 3: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30306 [id 9384622]>

🔎 No blockers found — but the run above can't prove the PR is clean. 0 pre-existing/flaky tests filtered out. Re-run once the above is sorted out.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9385078 · 147 suites ran, 0 reused

⚠️ This run doesn't cover the PR fully:

  • the RunAll was interrupted — 137 suite(s) never ran
  • 8 suite(s) have no reliable result (compilation error, timeout, crash)
  • 1 commit(s) pushed since this run — it tested older code

Everything below is what it did manage to say.

⚠️ 8 broken suite(s) (no reliable run):

  • Platform .NET (Core Linux): failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>
  • Thin client: Node.js: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>
  • Thin client: PHP: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>
  • Thin client: Python: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>
  • Build: non-zero exit code

  • Platform .NET (Windows): failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>
  • Platform .NET (Windows) 2: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build with id: 9384931>
  • Platform .NET (Windows) 3: failed dependency · Failed to resolve artifacts from <[Apache Ignite 2.x / Tests] / > Build, build #30308 [id 9384931]>

🔎 No blockers found — but the run above can't prove the PR is clean. 0 pre-existing/flaky tests filtered out. Re-run once the above is sorted out.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9385276 · 147 suites ran, 0 reused

👀 1 test(s) started failing on this code — not proven blockers yet: too few runs of this revision to tell a break from a flake, so a re-run of the suite decides it.

  • Snapshots 3: org.apache.ignite.testsuites.IgniteSnapshotTestSuite3: org.apache.ignite.internal.processors.cache.persistence.snapshot.EncryptedSnapshotTest.testStartFromSnapshotFailedWithOtherMasterKey[encryption=true, onlyPrimay=false]

⚠️ No proven blocker yet — this is not an all-clear: see the tests above. 22 pre-existing/flaky filtered out.

@oleg-vlsk oleg-vlsk changed the title IGNITE-28907 Support merging QueryEntity metadata in CacheConfiguration IGNITE-28907 Disallow mixing query entity configuration APIs and use last-call-wins semantics Oct 5, 2026
@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9386823 · 147 suites ran, 0 reused

⚠️ This run doesn't cover the PR fully:

  • 1 suite(s) have no reliable result (compilation error, timeout, crash)
  • a newer run is still going — its unfinished suites can still fail
  • 2 commit(s) pushed since this run — it tested older code

Everything below is what it did manage to say.

⚠️ 1 broken suite(s) (no reliable run):

  • Cache (Failover) 4: execution timeout · non-zero exit code · Number of tests 17 is 55% less than 38 in build Ignite 3074 2 #1232 — ran 17 of master's 38 tests

👀 4 test(s) started failing on this code — not proven blockers yet: too few runs of this revision to tell a break from a flake, so a re-run of the suite decides it.

  • Platform .NET (Windows): Apache.Ignite.Core.Tests.exe: Apache.Ignite.Core.Tests.Cache.Platform.PlatformCacheTopologyChangeTest.TestContinuousTopologyChangeMaintainsCorrectPlatformCacheData(1)
  • PDS 10: org.apache.ignite.testsuites.IgnitePdsTestSuite10: org.apache.ignite.cdc.WalForCdcTest.testOnlyDataRecordWritten[mode=REPLICATED, atomicityMode=TRANSACTIONAL]
  • Data Structures 2: org.apache.ignite.testsuites.IgniteCacheDataStructuresSelfTestSuite2: org.apache.ignite.internal.processors.cache.datastructures.partitioned.GridCachePartitionedQueueEntryMoveSelfTest.testQueue
  • Cache (Tx Recovery): org.apache.ignite.testsuites.IgniteCacheTxRecoverySelfTestSuite: org.apache.ignite.internal.processors.cache.distributed.dht.IgniteCacheTxRecoveryRollbackTest.testNearTx1Optimistic

⚠️ No proven blocker yet — this is not an all-clear: see the tests above. 18 pre-existing/flaky filtered out.

@oleg-vlsk

Copy link
Copy Markdown
Contributor Author

Ignite PR Checker verdict · RunAll build 9387293 · 147 suites ran, 0 reused

👀 21 test(s) started failing on this code — not proven blockers yet: too few runs of this revision to tell a break from a flake, so a re-run of the suite decides it.

  • Control Utility 2: org.apache.ignite.testsuites.IgniteControlUtilityTestSuite2: org.apache.ignite.util.CacheMetricsCommandTest.testEnableDisable[cmdHnd=jmx]
  • Queries 6: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite6: org.apache.ignite.internal.processors.cache.index.DynamicIndexClientBasicSelfTest.testCreateIndexWithParallelismReplicatedTransactional
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testPrimitives
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testMergeWithExplicitPrimitiveKey
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testFieldsCaseSensitivity
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testMergeFromSubquery
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testMergeWithDynamicKeyInstantiation
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQuerySelfTest.testMergeWithExplicitKey
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheMergeSqlQueryFailingTest.testSqlMergeIntoQuery
  • Queries 1: org.apache.ignite.testsuites.IgniteBinaryCacheQueryTestSuite: org.apache.ignite.internal.processors.cache.IgniteCacheInsertSqlQuerySelfTest.testPrimitives
    … and 11 more

⚠️ No proven blocker yet — this is not an all-clear: see the tests above. 14 pre-existing/flaky filtered out.

@zstan
zstan requested a lite review from Copilot October 19, 2026 10:43

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 2103 to 2111
public CacheConfiguration<K, V> setQueryEntities(Collection<QueryEntity> qryEntities) {
if (this.qryEntities == null) {
this.qryEntities = new ArrayList<>(qryEntities);

return this;
}
checkQueryEntityConfigurationSource(QueryEntityConfigurationSource.QUERY_ENTITIES);

for (QueryEntity entity : qryEntities) {
boolean found = false;
this.qryEntities = new ArrayList<>(qryEntities);

for (QueryEntity existing : this.qryEntities) {
if (Objects.equals(entity.findValueType(), existing.findValueType())) {
found = true;

break;
}
}

if (!found)
this.qryEntities.add(entity);
}
qryEntityCfgSrc = QueryEntityConfigurationSource.QUERY_ENTITIES;

return this;
}

@oleg-vlsk oleg-vlsk Nov 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added fallback to an empty collection for the null argument + coverage in CacheConfigurationQueryEntityTest#testEmptySetQueryEntitiesClearsPreviousEntities.

Comment on lines +2502 to +2504
private void checkQueryEntityConfigurationSource(QueryEntityConfigurationSource src) {
if (qryEntityCfgSrc != null && qryEntityCfgSrc != src)
throw new CacheException(String.format(MIXED_QUERY_ENTITIES_API_ERROR_TEMPLATE, name));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added fallback to <unnamed>.

Comment on lines +24 to +39
public final class CacheConfigurationInternalAccessor {
/** */
private CacheConfigurationInternalAccessor() {
// No-op.
}

/**
* Replaces query entities without changing the query-entity configuration source.
*
* @param cfg Cache configuration.
* @param qryEntities Query entities.
*/
public static void replaceQueryEntities(CacheConfiguration<?, ?> cfg, Collection<QueryEntity> qryEntities) {
cfg.replaceQueryEntities(qryEntities);
}
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Javadoc extended.

/** Tests that Spring XML configuration cannot mix indexed types and explicit query entities. */
public class CacheConfigurationQueryEntityXmlTest extends GridCommonAbstractTest {
/** */
private static final String CONFIG_DIR = "modules/spring/src/test/config/query-entities/";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added path resolution via resolveIgnitePath().

));

IgniteCache<Object, Object> c = jcache(ignite(), conf, Object.class, Object.class);
IgniteCache<Object, Object> c = jcache(ignite(), conf, "Object-Object");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing jcache(Ignite, CacheConfiguration, String) overload only copies the configuration, sets the cache name, and gets or creates the cache. It does NOT modify query entities.

jcacheWithSpecifiedName(...) additionally adds a query entity for the supplied key/value types if one is missing. Using it with Object.class here would add an unnecessary entity, so I would keep the existing call. Overload resolution is unambiguous with these three arguments.

@ignite-pr-checker

Copy link
Copy Markdown

@oleg-vlsk Ignite PR Checker verdict · RunAll build 9460568 · tested 15bd16d · 149 suites ran, 0 reused

⚠️ This run doesn't cover the PR fully:

  • 49 suites have no reliable result (48× ran fewer tests than on master; execution timeout · non-zero exit code)
  • 13 suites ran fewer tests than the same suites on master

Everything below is what it did manage to say.

⚠️ Broken suites (no reliable result):

  • ran fewer tests than on master (48 suites): SPI (URI Deploy) (ran 55 of master's 69 tests), PDS 3 (ran 42 of master's 52 tests), Cache 7 (ran 147 of master's 171 tests), PDS 4 (ran 213 of master's 239 tests), Cache 9 (ran 79 of master's 91 tests) and 43 more
  • Cache (Failover) 4: execution timeout · non-zero exit code — ran 17 of master's 48 tests

🔍 13 suites ran fewer tests than on master (tests that never ran can't fail):

  • Cache (Failover) 5: ran 67 of master's 85 tests (−21%)
  • Cache 14: ran 193 of master's 233 tests (−17%)
  • Cache 18: ran 152 of master's 176 tests (−14%)
  • Calcite SQL 2: ran 1244 of master's 1406 tests (−12%)
  • PDS (Indexing) 2: ran 200 of master's 227 tests (−12%)
  • Service Grid: ran 401 of master's 451 tests (−11%)
  • SPI (Discovery): ran 281 of master's 317 tests (−11%)
  • Web Sessions: ran 54 of master's 60 tests (−10%)
  • Cache 8: ran 377 of master's 417 tests (−10%)
  • Queries 3: ran 1499 of master's 1671 tests (−10%)
  • Disk Page Compressions 6: ran 117 of master's 130 tests (−10%)
  • Cache 4: ran 599 of master's 665 tests (−10%)
  • PDS (Unit Tests): ran 37 of master's 41 tests (−10%)

❌ 1 blocker in 1 suite, all on 1 run:

  • Snapshots 3 · EncryptedSnapshotTest.testSnapshotRestoringFailsWithOtherMasterKey[encryption=true, onlyPrimay=false] — 1 run · TC

1 run: the test ran once on this code and failed; a re-run of its suite confirms or clears it.

What each label means and what to do: verdict glossary.

➡️ Next: fix the blockers, push, and run RunAll again — a /run-all comment here does it when PR commands are on in the checker's ⚙.

@zstan
zstan merged commit f500124 into apache:master Nov 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants