HADOOP-15486. Make NetworkTopology#netLock fair. Contributed by Nanda kumar.

This commit is contained in:
Arpit Agarwal 2018-05-23 10:30:12 -07:00
parent d0d3d5b2ad
commit 76f38f3f8b
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class NetworkTopology {
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() {