You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Jing Zhao (JIRA)" <ji...@apache.org> on 2012/10/23 02:26:13 UTC
[jira] [Created] (HDFS-4106) BPServiceActor#lastHeartbeat,
lastBlockReport and lastDeletedReport should be declared as volatile
Jing Zhao created HDFS-4106:
-------------------------------
Summary: BPServiceActor#lastHeartbeat, lastBlockReport and lastDeletedReport should be declared as volatile
Key: HDFS-4106
URL: https://issues.apache.org/jira/browse/HDFS-4106
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 3.0.0
Reporter: Jing Zhao
Assignee: Jing Zhao
Priority: Minor
Attachments: HDFS-4106-trunk.001.patch
All these variables may be assigned/read by a testing thread (through BPServiceActor#triggerXXX) while also assigned/read by the actor thread. Thus they should be declared as volatile to make sure the "happens-before" consistency.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira