HDFS-11878. Fix journal missing log httpServerUrl address in JournalNodeSyncer. Contributed by Hanisha Koneru.
This commit is contained in:
parent
2e41f8803d
commit
4fb41b31db
|
@ -285,14 +285,8 @@ public class JournalNodeSyncer {
|
||||||
boolean success = false;
|
boolean success = false;
|
||||||
try {
|
try {
|
||||||
if (remoteJNproxy.httpServerUrl == null) {
|
if (remoteJNproxy.httpServerUrl == null) {
|
||||||
if (response.hasFromURL()) {
|
remoteJNproxy.httpServerUrl = getHttpServerURI("http",
|
||||||
URI uri = URI.create(response.getFromURL());
|
remoteJNproxy.jnAddr.getHostName(), response.getHttpPort());
|
||||||
remoteJNproxy.httpServerUrl = getHttpServerURI(uri.getScheme(),
|
|
||||||
uri.getHost(), uri.getPort());
|
|
||||||
} else {
|
|
||||||
remoteJNproxy.httpServerUrl = getHttpServerURI("http",
|
|
||||||
remoteJNproxy.jnAddr.getHostName(), response.getHttpPort());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String urlPath = GetJournalEditServlet.buildPath(jid, missingLog
|
String urlPath = GetJournalEditServlet.buildPath(jid, missingLog
|
||||||
|
|
Loading…
Reference in New Issue