Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-12579

JournalNodeSyncer should use fromUrl field of EditLogManifestResponse to construct servlet Url

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently in JournalNodeSyncer, we construct the remote JN http server url using the JN host address and the http port that we get from the GetEditLogManifestResponseProto.

                if (remoteJNproxy.httpServerUrl == null) {
                  remoteJNproxy.httpServerUrl = getHttpServerURI("http",
                      remoteJNproxy.jnAddr.getHostName(), response.getHttpPort());
                }
      

      The correct way would be to get the http server url of the remote JN from the fromUrl field of the GetEditLogManifestResponseProto. This would take care of the http policy set on the remote JN as well.

        Attachments

          Activity

            People

            • Assignee:
              hanishakoneru Hanisha Koneru
              Reporter:
              hanishakoneru Hanisha Koneru
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: