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

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

{panel:title=Branch: [pull/8378/head] Base: [master] : Possible Blockers 
(61)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}MVCC Cache 7{color} [[tests 0 TIMEOUT , Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682076]]

{color:#d04437}PDS 2{color} [[tests 0 Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682053]]

{color:#d04437}SPI{color} [[tests 0 TIMEOUT , Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682004]]

{color:#d04437}MVCC PDS 2{color} [[tests 0 TIMEOUT , Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682080]]

{color:#d04437}Queries 2{color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=5681999]]
* IgniteBinaryCacheQueryTestSuite2: 
SqlDataTypesCoverageTests.testDecimalDataType[atomicityMode=ATOMIC, 
cacheMode=PARTITIONED, ttlFactory=null, backups=2, evictionFactory=null, 
onheapCacheEnabled=false, writeSyncMode=FULL_ASYNC, persistenceEnabled=false] - 
Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Basic 1{color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=5682015]]
* IgniteBasicTestSuite: BPlusTreeSelfTest.testMassiveRemove2_false - Test has 
low fail rate in base branch 0,0% and is not flaky

{color:#d04437}Control Utility{color} [[tests 0 TIMEOUT , Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682089]]

{color:#d04437}MVCC PDS 1{color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=5682079]]
* IgnitePdsMvccTestSuite: 
IgniteClusterActivateDeactivateTestWithPersistence.testDeactivateFailover3 - 
Test has low fail rate in base branch 0,0% and is not flaky

{color:#d04437}ZooKeeper (Discovery) 4{color} [[tests 
3|https://ci.ignite.apache.org/viewLog.html?buildId=5682065]]
* org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: 
org.apache.ignite.internal.processors.metastorage.DistributedMetaStoragePersistentTest.
 - History for base branch is absent.
* org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: 
org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.
 - History for base branch is absent.
* org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4: 
org.apache.ignite.internal.processors.metastorage.DistributedMetaStorageTest. - 
History for base branch is absent.

{color:#d04437}Cache (Deadlock Detection){color} [[tests 9 Out Of Memory Error 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682024]]
* TxDeadlockDetectionTestSuite: 
TxDeadlockDetectionMessageMarshallingTest.testMessageUnmarshallWithoutCacheContext
 - Test has low fail rate in base branch 0,0% and is not flaky
* org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetectionUnmasrhalErrorsTest.
 - History for base branch is absent.
* TxDeadlockDetectionTestSuite: TxDeadlockCauseTest.testCauseNear - Test has 
low fail rate in base branch 0,0% and is not flaky
* org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxPessimisticDeadlockDetectionTest.
 - History for base branch is absent.
* org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxOptimisticDeadlockDetectionTest.
 - History for base branch is absent.
* TxDeadlockDetectionTestSuite: 
TxDeadlockDetectionNoHangsTest.testNoHangsPessimistic - Test has low fail rate 
in base branch 0,0% and is not flaky
* TxDeadlockDetectionTestSuite: 
TxDeadlockDetectionNoHangsTest.testNoHangsOptimistic - Test has low fail rate 
in base branch 0,0% and is not flaky
* org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetectionTest.
 - History for base branch is absent.
* org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxPessimisticDeadlockDetectionCrossCacheTest.
 - History for base branch is absent.

{color:#d04437}Platform C++ (Win x64 / Release){color} [[tests 0 
BuildFailureOnMessage 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682013]]

{color:#d04437}Cache (Restarts) 2{color} [[tests 33 Out Of Memory Error 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682033]]
* IgniteCacheRestartTestSuite2: 
GridCachePutAllFailoverSelfTest.testPutAllFailoverNearDisabledTwoBackups - Test 
has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
GridCachePutAllFailoverSelfTest.testPutAllFailoverColocatedNearEnabledTwoBackups
 - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicReplicatedNodeRestartSelfTest.testRestartWithPutSixNodesTwoBackups
 - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
GridCachePutAllFailoverSelfTest.testPutAllFailoverNearEnabledTwoBackups - Test 
has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicNodeRestartTest.testRestartWithPutSixNodesTwoBackups - Test 
has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: IgniteCacheAtomicNodeRestartTest.testRestart - 
Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicReplicatedNodeRestartSelfTest.testRestartWithPutFourNodesOneBackupsOffheapEvict
 - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicPutAllFailoverSelfTest.testPutAllFailoverColocatedNearEnabledThreeBackups
 - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicPutAllFailoverSelfTest.testPutAllFailoverNearEnabledOneBackup 
- Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicPutAllFailoverSelfTest.testPutAllFailoverColocatedNearDisabledThreeBackups
 - Test has low fail rate in base branch 0,0% and is not flaky
* IgniteCacheRestartTestSuite2: 
IgniteCacheAtomicPutAllFailoverSelfTest.testPutAllFailoverNearDisabledThreeBackups
 - Test has low fail rate in base branch 0,0% and is not flaky
... and 22 tests blockers

{color:#d04437}Cache (Failover SSL){color} [[tests 1 Out Of Memory Error 
|https://ci.ignite.apache.org/viewLog.html?buildId=5682026]]
* org.apache.ignite.testsuites.IgniteCacheFailoverTestSuiteSsl: 
org.apache.ignite.spi.communication.tcp.IgniteCacheSslStartStopSelfTest. - 
History for base branch is absent.

{color:#d04437}ZooKeeper{color} [[tests 0 TIMEOUT , Out Of Memory Error , Exit 
Code |https://ci.ignite.apache.org/viewLog.html?buildId=5682008]]

{color:#d04437}AOP{color} [[tests 0 Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5681974]]

{color:#d04437}RDD{color} [[tests 0 Out Of Memory Error , Exit Code 
|https://ci.ignite.apache.org/viewLog.html?buildId=5681998]]

{panel}
{panel:title=Branch: [pull/8378/head] Base: [master] : New Tests 
(24)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#00008b}Platform .NET (Core Linux){color} [[tests 
7|https://ci.ignite.apache.org/viewLog.html?buildId=5682057]]
* {color:#013220}dll: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromCodeRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}dll: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromSpringRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}dll: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromCodeSkipsInvalidQueryEntityTypes
 - PASSED{color}
* {color:#013220}dll: AffinityTest.TestAffinityKeyMappedWithQueryEntity - 
PASSED{color}
* {color:#013220}dll: 
AffinityTest.TestAffinityKeyMappedWithQueryEntitySpringXml - PASSED{color}
* {color:#013220}dll: 
ClientQueryEntityMetadataRegistrationTest.TestCacheStartFromThinClientRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}dll: 
QueryEntityMetadataRegistrationTest.TestCacheStartIgniteConfigurationRegistersMetaForQueryEntityTypes
 - PASSED{color}

{color:#00008b}ZooKeeper (Discovery) 4{color} [[tests 
3|https://ci.ignite.apache.org/viewLog.html?buildId=5682065]]
* 
{color:#8b0000}org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4:
 
org.apache.ignite.internal.processors.metastorage.DistributedMetaStoragePersistentTest.
 - FAILED{color}
* 
{color:#8b0000}org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4:
 
org.apache.ignite.internal.processors.cache.distributed.replicated.IgniteCacheReplicatedQuerySelfTest.
 - FAILED{color}
* 
{color:#8b0000}org.apache.ignite.spi.discovery.zk.ZookeeperDiscoverySpiTestSuite4:
 org.apache.ignite.internal.processors.metastorage.DistributedMetaStorageTest. 
- FAILED{color}

{color:#00008b}Cache (Deadlock Detection){color} [[tests 
5|https://ci.ignite.apache.org/viewLog.html?buildId=5682024]]
* {color:#8b0000}org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetectionUnmasrhalErrorsTest.
 - FAILED{color}
* {color:#8b0000}org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxPessimisticDeadlockDetectionTest.
 - FAILED{color}
* {color:#8b0000}org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxOptimisticDeadlockDetectionTest.
 - FAILED{color}
* {color:#8b0000}org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxDeadlockDetectionTest.
 - FAILED{color}
* {color:#8b0000}org.apache.ignite.testsuites.TxDeadlockDetectionTestSuite: 
org.apache.ignite.internal.processors.cache.transactions.TxPessimisticDeadlockDetectionCrossCacheTest.
 - FAILED{color}

{color:#00008b}Platform .NET{color} [[tests 
7|https://ci.ignite.apache.org/viewLog.html?buildId=5682056]]
* {color:#013220}exe: 
AffinityTest.TestAffinityKeyMappedWithQueryEntitySpringXml - PASSED{color}
* {color:#013220}exe: AffinityTest.TestAffinityKeyMappedWithQueryEntity - 
PASSED{color}
* {color:#013220}exe: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromSpringRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}exe: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromCodeSkipsInvalidQueryEntityTypes
 - PASSED{color}
* {color:#013220}exe: 
QueryEntityMetadataRegistrationTest.TestCacheStartFromCodeRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}exe: 
QueryEntityMetadataRegistrationTest.TestCacheStartIgniteConfigurationRegistersMetaForQueryEntityTypes
 - PASSED{color}
* {color:#013220}exe: 
ClientQueryEntityMetadataRegistrationTest.TestCacheStartFromThinClientRegistersMetaForQueryEntityTypes
 - PASSED{color}

{color:#00008b}Cache (Restarts) 2{color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=5682033]]
* {color:#8b0000}org.apache.ignite.testsuites.IgniteCacheRestartTestSuite2: 
org.apache.ignite.internal.processors.cache.distributed.IgniteCacheGetRestartTest.
 - FAILED{color}

{color:#00008b}Cache (Failover SSL){color} [[tests 
1|https://ci.ignite.apache.org/viewLog.html?buildId=5682026]]
* {color:#8b0000}org.apache.ignite.testsuites.IgniteCacheFailoverTestSuiteSsl: 
org.apache.ignite.spi.communication.tcp.IgniteCacheSslStartStopSelfTest. - 
FAILED{color}

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

> .NET: wrong affinity key registration with AffinityKeyMapped attribute
> ----------------------------------------------------------------------
>
>                 Key: IGNITE-13160
>                 URL: https://issues.apache.org/jira/browse/IGNITE-13160
>             Project: Ignite
>          Issue Type: Bug
>          Components: platforms
>    Affects Versions: 2.8.1
>            Reporter: Alexandr Shapkin
>            Assignee: Pavel Tupitsyn
>            Priority: Major
>             Fix For: 2.10
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> When QueryEntities is set alongside a custom key that utilizes the 
> AffinityKeyMapped attribute, the field won't be taken into account for some 
> reason. When QueryEntities configuration gets removed, all works fine, 
> setting KeyConfiguration manually helps as well. At the same time, the 
> BinaryType registration itself looks fine.
> After the investigation, it turned out that affinityKey field is not being 
> registered on cache registration, and null is being cached instead. Later on 
> Ignite correctly tries to register a custom class as a key, but it's never 
> being updated internally case the real value is already cached.
>  
> NOTE: there is a workaround - you need to specify the key configuration 
> explicitly:
> {code:java}
> cacheConfiguration.KeyConfiguration = new List<CacheKeyConfiguration>(1)
> {
>  //affinityKey should be auto adjusted with Reflection
>  new CacheKeyConfiguration(typeof(MyKey))
> };
>  
> {code}
>  
> Reproducer (add to the AffinityTest.cs):
> {code:java}
>         /// <summary>
>         /// Tests AffinityKeyMapped attribute should map to the same 
> partitions
>         /// for the same field value.
>         /// </summary>
>         [Test]
>         public void TestCustomAffinity()
>         {
>             IIgnite g = Ignition.GetIgnite("grid-0");
>             var cacheCfg = new CacheConfiguration("mycache")
>             {
>                 // Without QueryEntities tests passes.
>                 QueryEntities = new List<QueryEntity>()
>                 {
>                     new QueryEntity(typeof(MyKey), typeof(int))
>                 }
>             };
>             g.GetOrCreateCache<MyKey, int>(cacheCfg);
>             var key1 = new MyKey {Data = "data1", AffinityKey = 1};
>             var key2 = new MyKey {Data = "data2", AffinityKey = 1};
>             ICacheAffinity aff = g.GetAffinity(cacheCfg.Name);
>             Assert.AreEqual(aff.GetPartition(key1), aff.GetPartition(key2));
>         }
>         public class MyKey
>         {
>             [QuerySqlField]
>             public string Data { get; set; }
>             [AffinityKeyMapped]
>             public long AffinityKey { get; set; }
>         }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to