Details
-
Sub-task
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
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.
Attachments
Issue Links
- is blocked by
-
HADOOP-17752 Remove lock contention in REGISTRY of Configuration
- Open
-
HADOOP-17754 Remove lock contention in overlay of Configuration
- Open