[ https://issues.apache.org/jira/browse/IGNITE-12578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17022872#comment-17022872 ]
Anton Vinogradov commented on IGNITE-12578: ------------------------------------------- [~alex_pl] Does it work well with Array? > CAS cache operations (replace(K, V, V), remove(K, V)) don't work with array > data type > ------------------------------------------------------------------------------------- > > Key: IGNITE-12578 > URL: https://issues.apache.org/jira/browse/IGNITE-12578 > Project: Ignite > Issue Type: Bug > Components: cache > Reporter: Aleksey Plekhanov > Priority: Major > > Values are compared using {{CacheEntryPredicateContainsValue}} predicate, > this predicate call {{F.eq(thisVal, cacheVal)}} to compare, which gives false > for two instances of arrays with the same content. > Reproducer: > {code:java} > IgniteCache<Object, Object> cache = > startGrid().getOrCreateCache(DEFAULT_CACHE_NAME); > Object val = new byte[] {1}; > cache.put(1, val); > assertTrue(cache.replace(1, val, val)); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)