Haiyang Hu created HDFS-16888:
---------------------------------
Summary: BlockManager#maxReplicationStreams,
replicationStreamsHardLimit, blocksReplWorkMultiplier and
PendingReconstructionBlocks#timeout should be volatile
Key: HDFS-16888
URL: https://issues.apache.org/jira/browse/HDFS-16888
Project: Hadoop HDFS
Issue Type: Improvement
Reporter: Haiyang Hu
BlockManager#maxReplicationStreams, replicationStreamsHardLimit,
blocksReplWorkMultiplier and PendingReconstructionBlocks#timeout these
variables may be writen by NameNode#reconfReplicationParameters then while
read by the other threads.
Thus they should be declared as volatile to make sure the "happens-before"
consistency.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]