HBASE-12167 addendum; fix TestMasterObserver
This commit is contained in:
parent
efe0787c87
commit
dbef2bdafe
|
@ -1428,11 +1428,13 @@ public class TestMasterObserver {
|
||||||
String destName = null;
|
String destName = null;
|
||||||
String serverNameForFirstRegion = firstGoodPair.getValue().toString();
|
String serverNameForFirstRegion = firstGoodPair.getValue().toString();
|
||||||
LOG.info("serverNameForFirstRegion=" + serverNameForFirstRegion);
|
LOG.info("serverNameForFirstRegion=" + serverNameForFirstRegion);
|
||||||
|
ServerName masterServerName = master.getServerName();
|
||||||
boolean found = false;
|
boolean found = false;
|
||||||
// Find server that is NOT carrying the first region
|
// Find server that is NOT carrying the first region
|
||||||
for (ServerName info : servers) {
|
for (ServerName info : servers) {
|
||||||
LOG.info("ServerName=" + info);
|
LOG.info("ServerName=" + info);
|
||||||
if (!serverNameForFirstRegion.equals(info.getServerName())) {
|
if (!serverNameForFirstRegion.equals(info.getServerName())
|
||||||
|
&& !masterServerName.equals(info)) {
|
||||||
destName = info.toString();
|
destName = info.toString();
|
||||||
found = true;
|
found = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue