[ https://issues.apache.org/jira/browse/IGNITE-14685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17339849#comment-17339849 ]
Stanislav Lukyanov commented on IGNITE-14685: --------------------------------------------- Attached a reproducer. In DuplicateIndexTest, testStaticCaches and testServerDynamicClientStaticCaches fail. > Server crashes if joining node has static cache with a duplicate index > ---------------------------------------------------------------------- > > Key: IGNITE-14685 > URL: https://issues.apache.org/jira/browse/IGNITE-14685 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: 2.10 > Reporter: Stanislav Lukyanov > Priority: Major > Attachments: DuplicateIndexTest.java > > > Scenario > # Start a server > # Create a cache FOO with an index named IDX and a schema named BAR > # Start a client with a statically configured cache FOO2 with an index named > IDX and a schema named BAR > Expected result: either client is not allowed to join, or the cache FOO2 is > not created. > Result: server crashes. > {code} > [SEVERE][exchange-worker-#61%sqltests.DuplicateIndexTest0%][] Critical system > error detected. Will be handled accordingly to configured handler > [hnd=StopNodeOrHaltFailureHandler [tryStop=false, timeout=0, > super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet > [SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], > failureCtx=FailureContext [type=SYSTEM_WORKER_TERMINATION, err=class > o.a.i.IgniteCheckedException: Duplicate index name [cache=foo2, > schemaName=BAR, idxName=IDX, existingTable=VAL, table=VAL2]]] > class org.apache.ignite.IgniteCheckedException: Duplicate index name > [cache=foo2, schemaName=BAR, idxName=IDX, existingTable=VAL, table=VAL2] > at > org.apache.ignite.internal.util.IgniteUtils.cast(IgniteUtils.java:7613) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.resolve(GridFutureAdapter.java:260) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.get0(GridFutureAdapter.java:209) > at > org.apache.ignite.internal.util.future.GridFutureAdapter.get(GridFutureAdapter.java:160) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3405) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body(GridCachePartitionExchangeManager.java:3199) > at > org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:120) > at java.lang.Thread.run(Thread.java:748) > Caused by: class org.apache.ignite.IgniteException: Duplicate index name > [cache=foo2, schemaName=BAR, idxName=IDX, existingTable=VAL, table=VAL2] > at > org.apache.ignite.internal.processors.query.GridQueryProcessor.registerCache0(GridQueryProcessor.java:2155) > at > org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart0(GridQueryProcessor.java:1024) > at > org.apache.ignite.internal.processors.query.GridQueryProcessor.onCacheStart(GridQueryProcessor.java:1091) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareCacheStart(GridCacheProcessor.java:1967) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCaches$55a0e703$1(GridCacheProcessor.java:1837) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.lambda$prepareStartCaches$13(GridCacheProcessor.java:1789) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCaches(GridCacheProcessor.java:1834) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.prepareStartCaches(GridCacheProcessor.java:1788) > at > org.apache.ignite.internal.processors.cache.GridCacheProcessor.startReceivedCaches(GridCacheProcessor.java:1769) > at > org.apache.ignite.internal.processors.cache.distributed.dht.preloader.GridDhtPartitionsExchangeFuture.init(GridDhtPartitionsExchangeFuture.java:965) > at > org.apache.ignite.internal.processors.cache.GridCachePartitionExchangeManager$ExchangeWorker.body0(GridCachePartitionExchangeManager.java:3377) > ... 3 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)