Skip to content

Commit 8328d24

Browse files
committed
HBASE-22546 TestRegionServerHostname#testRegionServerHostname fails reliably for me
1 parent 3139db5 commit 8328d24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestRegionServerHostname.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ public void testRegionServerHostname() throws Exception {
9696
// iterate through host addresses and use each as hostname
9797
while (addrList.hasMoreElements()) {
9898
InetAddress addr = addrList.nextElement();
99-
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress()) {
99+
if (addr.isLoopbackAddress() || addr.isLinkLocalAddress() || addr.isMulticastAddress() ||
100+
!addr.isSiteLocalAddress()) {
100101
continue;
101102
}
102103
String hostName = addr.getHostName();
103-
LOG.info("Found " + hostName + " on " + ni);
104+
LOG.info("Found " + hostName + " on " + ni + ", addr=" + addr);
104105

105106
TEST_UTIL.getConfiguration().set(HRegionServer.MASTER_HOSTNAME_KEY, hostName);
106107
TEST_UTIL.getConfiguration().set(HRegionServer.RS_HOSTNAME_KEY, hostName);

0 commit comments

Comments
 (0)