You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Nikolay Izhikov (Jira)" <ji...@apache.org> on 2021/11/02 08:15:00 UTC

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

     [ https://issues.apache.org/jira/browse/IGNITE-12578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nikolay Izhikov updated IGNITE-12578:
-------------------------------------
    Labels: ise  (was: )

> 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
>              Labels: ise
>
> 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)