Pavel Tupitsyn created IGNITE-7468: -------------------------------------- Summary: Irrelevant "Caches have distinct sets of data nodes" error Key: IGNITE-7468 URL: https://issues.apache.org/jira/browse/IGNITE-7468 Project: Ignite Issue Type: Bug Components: sql Affects Versions: 2.4 Reporter: Pavel Tupitsyn Fix For: 2.5
The following error is possible when doing PUBLIC schema queries with joins through a "dummy" cache: {code} Apache.Ignite.Core.Cache.CacheException : Caches have distinct sets of data nodes [cache1=dummy_cache, cache2=SQL_PUBLIC_PERSON] ----> Apache.Ignite.Core.Common.JavaException : javax.cache.CacheException: Caches have distinct sets of data nodes [cache1=dummy_cache, cache2=SQL_PUBLIC_PERSON] at org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.stableDataNodes(GridReduceQueryExecutor.java:499) at org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.nodesForPartitions(GridReduceQueryExecutor.java:1486) at org.apache.ignite.internal.processors.query.h2.twostep.GridReduceQueryExecutor.query(GridReduceQueryExecutor.java:591) at org.apache.ignite.internal.processors.query.h2.IgniteH2Indexing$8.iterator(IgniteH2Indexing.java:1286) at org.apache.ignite.internal.processors.cache.QueryCursorImpl.iterator(QueryCursorImpl.java:95) at org.apache.ignite.internal.processors.platform.cache.query.PlatformAbstractQueryCursor.processInLongOutLong(PlatformAbstractQueryCursor.java:147) at org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inLongOutLong(PlatformTargetProxyImpl.java:55) at Apache.Ignite.Core.Impl.PlatformJniTarget.InLongOutLong(Int32 type, Int64 val) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\PlatformJniTarget.cs:line 379 at Apache.Ignite.Core.Impl.Cache.Query.PlatformQueryQursorBase`1.InitIterator() in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\Cache\Query\PlatformQueryQursorBase.cs:line 74 at Apache.Ignite.Core.Impl.Cache.Query.QueryCursorBase`1.GetEnumerator() in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\Cache\Query\QueryCursorBase.cs:line 125 at Apache.Ignite.Examples.Sql.SqlDdlExample.Main() in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\examples\Apache.Ignite.Examples\Sql\SqlDdlExample.cs:line 95 at Apache.Ignite.Core.Tests.Examples.Example.Run() in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core.Tests\Examples\Example.cs:line 52 at Apache.Ignite.Core.Tests.Examples.ExamplesTest.TestRemoteNodes(Example example, Boolean clientMode) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core.Tests\Examples\ExamplesTest.cs:line 131 at Apache.Ignite.Core.Tests.Examples.ExamplesTest.TestRemoteNodes(Example example) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core.Tests\Examples\ExamplesTest.cs:line 99 --JavaException at Apache.Ignite.Core.Impl.Unmanaged.Jni.Env.ExceptionCheck() in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\Unmanaged\Jni\Env.cs:line 490 at Apache.Ignite.Core.Impl.Unmanaged.Jni.Env.CallLongMethod(GlobalRef obj, IntPtr methodId, Int64* argsPtr) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\Unmanaged\Jni\Env.cs:line 203 at Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.TargetInLongOutLong(GlobalRef target, Int32 opType, Int64 memPtr) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\Unmanaged\UnmanagedUtils.cs:line 83 at Apache.Ignite.Core.Impl.PlatformJniTarget.InLongOutLong(Int32 type, Int64 val) in c:\BuildAgent\work\bd85361428dcdb1\modules\platforms\dotnet\Apache.Ignite.Core\Impl\PlatformJniTarget.cs:line 375 {code} * This reproduces in .NET {{SqlDdlExample}}. It is the same as Java example, but in Java it does not reproduce. * Adding sleep(3000) before the query fixes the issue. * Making dummy cache {{replicated}} fixes the issue See IGNITE-7465. -- This message was sent by Atlassian JIRA (v7.6.3#76005)