[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-26 Thread Brandon Li (JIRA)

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

Brandon Li updated HDFS-5548:
-

Fix Version/s: 2.2.1

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: nfs
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Fix For: 2.2.1
>
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-26 Thread Brandon Li (JIRA)

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

Brandon Li updated HDFS-5548:
-

Attachment: HDFS-5548.003.patch

Upload the committed patch, which has trivial difference with different debug 
level in a couple places.

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: nfs
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Fix For: 2.2.1
>
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch, HDFS-5548.003.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-26 Thread Brandon Li (JIRA)

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

Brandon Li updated HDFS-5548:
-

  Resolution: Fixed
Hadoop Flags: Reviewed
  Status: Resolved  (was: Patch Available)

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: nfs
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-26 Thread Brandon Li (JIRA)

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

Brandon Li updated HDFS-5548:
-

Issue Type: Improvement  (was: Bug)

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Improvement
>  Components: nfs
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-25 Thread Brandon Li (JIRA)

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

Brandon Li updated HDFS-5548:
-

Component/s: nfs

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Bug
>  Components: nfs
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-25 Thread Haohui Mai (JIRA)

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

Haohui Mai updated HDFS-5548:
-

Attachment: HDFS-5548.002.patch

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Bug
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch, 
> HDFS-5548.002.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-21 Thread Haohui Mai (JIRA)

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

Haohui Mai updated HDFS-5548:
-

Attachment: HDFS-5548.001.patch

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Bug
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch, HDFS-5548.001.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-21 Thread Haohui Mai (JIRA)

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

Haohui Mai updated HDFS-5548:
-

Status: Patch Available  (was: Open)

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Bug
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)


[jira] [Updated] (HDFS-5548) Use ConcurrentHashMap in portmap

2013-11-21 Thread Haohui Mai (JIRA)

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

Haohui Mai updated HDFS-5548:
-

Attachment: HDFS-5548.000.patch

> Use ConcurrentHashMap in portmap
> 
>
> Key: HDFS-5548
> URL: https://issues.apache.org/jira/browse/HDFS-5548
> Project: Hadoop HDFS
>  Issue Type: Bug
>Reporter: Haohui Mai
>Assignee: Haohui Mai
> Attachments: HDFS-5548.000.patch
>
>
> Portmap uses a HashMap to store the port mapping. It synchronizes the access 
> of the hash map by locking itself. It can be simplified by using a 
> ConcurrentHashMap.



--
This message was sent by Atlassian JIRA
(v6.1#6144)