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

David Mollitor updated HDFS-14866:
----------------------------------
    Attachment: HDFS-14866.1.patch

> NameNode stopRequested is Marked volatile
> -----------------------------------------
>
>                 Key: HDFS-14866
>                 URL: https://issues.apache.org/jira/browse/HDFS-14866
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 3.2.0
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Trivial
>         Attachments: HDFS-14866.1.patch
>
>
> https://github.com/apache/hadoop/blob/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java#L405
> "Used for testing" so not a big deal, but it's a bit odd that it's scoped as 
> 'protected' and is not 'volatile'.  It could be accessed outside of a lock 
> and getting a bad value.  Tighten that up a little.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to