HBASE-14545 TestMasterFailover often times out
This commit is contained in:
parent
436bd5e823
commit
5f95ec6265
|
@ -144,7 +144,9 @@ public class LocalHBaseCluster {
|
|||
// clash over default ports.
|
||||
conf.set(HConstants.MASTER_PORT, "0");
|
||||
conf.set(HConstants.REGIONSERVER_PORT, "0");
|
||||
conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
|
||||
if (conf.getInt(HConstants.REGIONSERVER_INFO_PORT, 0) != -1) {
|
||||
conf.set(HConstants.REGIONSERVER_INFO_PORT, "0");
|
||||
}
|
||||
|
||||
this.masterClass = (Class<? extends HMaster>)
|
||||
conf.getClass(HConstants.MASTER_IMPL, masterClass);
|
||||
|
|
|
@ -167,10 +167,10 @@ public class RegionStates {
|
|||
}
|
||||
|
||||
/**
|
||||
* @return an unmodifiable the region assignment map
|
||||
* @return a copy of the region assignment map
|
||||
*/
|
||||
public synchronized Map<HRegionInfo, ServerName> getRegionAssignments() {
|
||||
return Collections.unmodifiableMap(regionAssignments);
|
||||
return new TreeMap<HRegionInfo, ServerName>(regionAssignments);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue