You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Xuesen Liang (Jira)" <ji...@apache.org> on 2021/06/10 07:41:00 UTC
[jira] [Updated] (HADOOP-17757) Reduce lock contention in
properties of Configuration
[ 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: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org