You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/08/03 08:48:00 UTC

[jira] [Updated] (HDDS-4058) Wrong use of AtomicBoolean in HddsDatanodeService

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

ASF GitHub Bot updated HDDS-4058:
---------------------------------
    Labels: pull-request-available  (was: )

> Wrong use of AtomicBoolean in HddsDatanodeService
> -------------------------------------------------
>
>                 Key: HDDS-4058
>                 URL: https://issues.apache.org/jira/browse/HDDS-4058
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Datanode
>            Reporter: Attila Doroszlai
>            Assignee: Attila Doroszlai
>            Priority: Minor
>              Labels: pull-request-available
>
> * {{AtomicBoolean isStopped}} should be {{final}}, not {{volatile}}, since the reference is not being changed
> * {{stop()}} should use atomic {{getAndSet()}} instead of {{get()}} followed by {{set()}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: ozone-issues-help@hadoop.apache.org