[ 
https://issues.apache.org/jira/browse/IGNITE-21078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796574#comment-17796574
 ] 

Ignite TC Bot commented on IGNITE-21078:
----------------------------------------

{panel:title=Branch: [pull/11094/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/11094/head] Base: [master] : New Tests 
(2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Platform .NET (Core Linux){color} [[tests 
1|https://ci2.ignite.apache.org/viewLog.html?buildId=7654816]]
* {color:#013220}DotNetCore: 
PlatformCacheTopologyChangeTest.TestPlatformCacheWithNegativeId - PASSED{color}

{color:#00008b}Platform .NET (Windows){color} [[tests 
1|https://ci2.ignite.apache.org/viewLog.html?buildId=7654817]]
* {color:#013220}exe: 
PlatformCacheTopologyChangeTest.TestPlatformCacheWithNegativeId - PASSED{color}

{panel}
[TeamCity *--> Run :: All* 
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=7654851&buildTypeId=IgniteTests24Java8_RunAll]

> .NET: Platform cache is not updated on topology change when cache id is 
> negative
> --------------------------------------------------------------------------------
>
>                 Key: IGNITE-21078
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21078
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Aleksey Plekhanov
>            Assignee: Aleksey Plekhanov
>            Priority: Major
>              Labels: ise
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> Reproducer:
> {code:java}
> public void TestPlatformCacheWithNegativeId()
> {
>     InitNodes(1);
>     var cacheName = "negative_cache_id";
>     var cacheConfiguration = new CacheConfiguration(cacheName)
>     {
>         PlatformCacheConfiguration = new PlatformCacheConfiguration()
>     };
>     
>     var cache = _ignite[0].GetOrCreateCache<int, Foo>(cacheConfiguration);
>     var key = 0;
>     var val = new Foo(-1);
>     cache[key] = val;
>     InitNode(1);
>     Assert.AreEqual(val, cache[key]);
> } {code}
> Fails with:
> {noformat}
> Apache.Ignite.Core.Common.IgniteException : Java exception occurred 
> [class=java.lang.AssertionError, message=Affinity partition is out of range 
> [part=-1, partitions=1024]]
>   ----> Apache.Ignite.Core.Common.JavaException : java.lang.AssertionError: 
> Affinity partition is out of range [part=-1, partitions=1024]
>     at 
> org.apache.ignite.internal.processors.affinity.HistoryAffinityAssignmentImpl.get(HistoryAffinityAssignmentImpl.java:244)
>     at 
> org.apache.ignite.internal.processors.affinity.GridAffinityAssignmentCache.primaryChanged(GridAffinityAssignmentCache.java:865)
>     at 
> org.apache.ignite.internal.processors.cache.GridCacheAffinityManager.primaryChanged(GridCacheAffinityManager.java:403)
>     at 
> org.apache.ignite.internal.processors.platform.cache.affinity.PlatformAffinityManager.processInStreamOutLong(PlatformAffinityManager.java:62)
>     at 
> org.apache.ignite.internal.processors.platform.PlatformAbstractTarget.processInStreamOutLong(PlatformAbstractTarget.java:87)
>     at 
> org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl.inStreamOutLong(PlatformTargetProxyImpl.java:67){noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to