[
https://issues.apache.org/jira/browse/IGNITE-12578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Luchnikov Alexander updated IGNITE-12578:
-----------------------------------------
Labels: ise ise.lts (was: ise)
> 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
> Assignee: Nikolay Izhikov
> Priority: Major
> Labels: ise, ise.lts
> Fix For: 2.13
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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.20.7#820007)