HADOOP-15486. Make NetworkTopology#netLock fair. Contributed by Nanda kumar.
This commit is contained in:
parent
411a2f609b
commit
50c39db1ad
@ -105,7 +105,7 @@ protected NetworkTopology init(InnerNode.Factory factory) {
|
||||
private boolean clusterEverBeenMultiRack = false;
|
||||
|
||||
/** the lock used to manage access */
|
||||
protected ReadWriteLock netlock = new ReentrantReadWriteLock();
|
||||
protected ReadWriteLock netlock = new ReentrantReadWriteLock(true);
|
||||
|
||||
// keeping the constructor because other components like MR still uses this.
|
||||
public NetworkTopology() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user