[
https://issues.apache.org/jira/browse/HADOOP-17757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xuesen Liang updated HADOOP-17757:
----------------------------------
Parent: HADOOP-17751
Issue Type: Sub-task (was: Improvement)
> Reduce lock contention in properties of Configuration
> -----------------------------------------------------
>
> Key: HADOOP-17757
> URL: https://issues.apache.org/jira/browse/HADOOP-17757
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: common
> Reporter: Xuesen Liang
> Priority: Major
>
> The *properties* field of class *Configuration* is guard by _synchronized_,
> and its type java.util.Property is a sub class of java.util.*Hashtable*,
> which methods are all synchronized. These are bad for multithread performance.
> The properties field should be replaced by a *HashMap<String, String>* with a
> *ReentrantReadWriteLock*, then all _get()_ related operations can be parallel
> guard by ReadLock, and _set/load_ operations can be guard by WriteLock. This
> is better for performance.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]