Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public ClientProtocol createProxy(Configuration config,
InetSocketAddress nnAddr, Class<ClientProtocol> xface,
UserGroupInformation ugi, boolean withRetries,
AtomicBoolean fallbackToSimpleAuth) {
return proxyMap.get(nnAddr.toString());
return proxyMap.get(nnAddr.toString().replaceAll("/<unresolved>", ""));
}
}) {
@Override
Expand Down Expand Up @@ -530,7 +530,8 @@ private void doWrite() throws Exception {
}

private void assertHandledBy(int namenodeIdx) {
assertEquals(namenodeAddrs[namenodeIdx], proxyProvider.getLastProxy().proxyInfo);
assertEquals(namenodeAddrs[namenodeIdx],
proxyProvider.getLastProxy().proxyInfo.replaceAll("/<unresolved>", ""));
}

private static void doWrite(ClientProtocol client) throws Exception {
Expand Down