ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Magda (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-1863) IgniteAtomicReference.compareAndSet does not work for nulls
Date Tue, 10 Nov 2015 10:21:11 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-1863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14998360#comment-14998360
] 

Denis Magda commented on IGNITE-1863:
-------------------------------------

Changes look good. Merged into the release branch. Thanks!

> IgniteAtomicReference.compareAndSet does not work for nulls
> -----------------------------------------------------------
>
>                 Key: IGNITE-1863
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1863
>             Project: Ignite
>          Issue Type: Bug
>          Components: data structures
>    Affects Versions: 1.5
>            Reporter: Pavel  Tupitsyn
>            Assignee: Denis Magda
>             Fix For: 1.5
>
>
> IgniteAtomicReference allows null as a value, but when current value is null, compareAndSet
does not work:
> {code}
>         IgniteAtomicReference<String> atomic = ignite.atomicReference(atomicName,
null, true);
>         assertEquals(null, atomic.get());
>         boolean res = atomic.compareAndSet(null, "x");
>         assertTrue(res);                    // fail
>         assertEquals("x", atomic.get());    // fail
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message