You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by "Aleksey Plekhanov (Jira)" <ji...@apache.org> on 2020/01/24 11:02:00 UTC

[jira] [Created] (IGNITE-12578) CAS cache operations (replace(K, V, V), remove(K, V)) don't work with array data type

Aleksey Plekhanov created IGNITE-12578:
------------------------------------------

             Summary: 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


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)