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

Eric Badger updated HDFS-10617:
-------------------------------
    Description: pendingReconstructions (pendingReplicationBlocks in branch-2 
and below) is a HashMap, which is not a thread-safe data structure. Therefore, 
the size() function should be synchronized just like the rest of the member 
functions.   (was: pendingReplications is a HashMap, which is not a thread-safe 
data structure. Therefore, the size() function should be synchronized just like 
the rest of the member functions. )
        Summary: PendingReconstructions.size() should be synchronized  (was: 
PendingReplicationBlocks.size() should be synchronized)

> PendingReconstructions.size() should be synchronized
> ----------------------------------------------------
>
>                 Key: HDFS-10617
>                 URL: https://issues.apache.org/jira/browse/HDFS-10617
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.22.0
>            Reporter: Eric Badger
>            Assignee: Eric Badger
>
> pendingReconstructions (pendingReplicationBlocks in branch-2 and below) is a 
> HashMap, which is not a thread-safe data structure. Therefore, the size() 
> function should be synchronized just like the rest of the member functions. 



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

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

Reply via email to