Skip to content

Commit

Permalink
HBASE-22546 TestRegionServerHostname#testRegionServerHostname fails r…
Browse files Browse the repository at this point in the history
…eliably for me
  • Loading branch information
saintstack committed Jun 6, 2019
1 parent 3139db5 commit 8328d24
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,12 @@ public void testRegionServerHostname() throws Exception {
// iterate through host addresses and use each as hostname
while (addrList.hasMoreElements()) {
InetAddress addr = addrList.nextElement();
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress()) {
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress() ||
!addr.isSiteLocalAddress()) {
continue;
}
String hostName = addr.getHostName();
LOG.info("Found " + hostName + " on " + ni);
LOG.info("Found " + hostName + " on " + ni + ", addr=" + addr);

TEST_UTIL.getConfiguration().set(HRegionServer.MASTER_HOSTNAME_KEY, hostName);
TEST_UTIL.getConfiguration().set(HRegionServer.RS_HOSTNAME_KEY, hostName);
Expand Down

0 comments on commit 8328d24

Please sign in to comment.