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)