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

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17460186#comment-17460186 ] 

Ignite TC Bot commented on IGNITE-12578:
----------------------------------------

{panel:title=Branch: [pull/9641/head] Base: [master] : Possible Blockers (2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}
{color:#d04437}AWS{color} [[tests 0 Exit Code |https://ci2.ignite.apache.org/viewLog.html?buildId=6233515]]

{color:#d04437}GCE{color} [[tests 0 Exit Code |https://ci2.ignite.apache.org/viewLog.html?buildId=6233555]]

{panel}
{panel:title=Branch: [pull/9641/head] Base: [master] : New Tests (2)|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}
{color:#00008b}Binary Objects{color} [[tests 2|https://ci2.ignite.apache.org/viewLog.html?buildId=6233519]]
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryArraySelfTest.testPrimitivesArrays[useBinaryArrays = true] - PASSED{color}
* {color:#013220}IgniteBinaryObjectsTestSuite: BinaryArraySelfTest.testPrimitivesArrays[useBinaryArrays = false] - PASSED{color}

{panel}
[TeamCity *--&gt; Run :: All* Results|https://ci2.ignite.apache.org/viewLog.html?buildId=6233610&amp;buildTypeId=IgniteTests24Java8_RunAll]

> 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
>          Time Spent: 20m
>  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.1#820001)