[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Kihwal Lee (JIRA)

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

Kihwal Lee updated HDFS-10617:
--
   Resolution: Fixed
 Hadoop Flags: Reviewed
Fix Version/s: 2.9.0
   Status: Resolved  (was: Patch Available)

> PendingReconstructionBlocks.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
> Fix For: 2.9.0
>
> Attachments: HDFS-10617.001.patch, HDFS-10617.002.patch, 
> HDSF-10617-b2.001.patch
>
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Eric Badger (JIRA)

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

Eric Badger updated HDFS-10617:
---
Status: Patch Available  (was: Open)

> PendingReconstructionBlocks.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
> Attachments: HDFS-10617.001.patch, HDFS-10617.002.patch, 
> HDSF-10617-b2.001.patch
>
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Eric Badger (JIRA)

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

Eric Badger updated HDFS-10617:
---
Attachment: HDFS-10617.002.patch

Attaching updated trunk patch. Eclipse inserted tabs instead of spaces into the 
first one. 

> PendingReconstructionBlocks.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
> Attachments: HDFS-10617.001.patch, HDFS-10617.002.patch, 
> HDSF-10617-b2.001.patch
>
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Eric Badger (JIRA)

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

Eric Badger updated HDFS-10617:
---
Attachment: HDSF-10617-b2.001.patch

Attaching branch-2 patch

> PendingReconstructionBlocks.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
> Attachments: HDFS-10617.001.patch, HDSF-10617-b2.001.patch
>
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Eric Badger (JIRA)

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

Eric Badger updated HDFS-10617:
---
Attachment: HDFS-10617.001.patch

Attaching patch for trunk

> PendingReconstructionBlocks.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
> Attachments: HDFS-10617.001.patch
>
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org



[jira] [Updated] (HDFS-10617) PendingReconstructionBlocks.size() should be synchronized

2016-07-13 Thread Eric Badger (JIRA)

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

Eric Badger updated HDFS-10617:
---
Description: PendingReconstructionBlocks (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: 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. )
Summary: PendingReconstructionBlocks.size() should be synchronized  
(was: PendingReconstructions.size() should be synchronized)

> PendingReconstructionBlocks.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
>
> PendingReconstructionBlocks (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: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org