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

JournalNodeSyncer should use fromUrl field of EditLogManifestResponse to construct servlet Url

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • None
    • 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

        1. HDFS-12579.001.patch
          2 kB
          Hanisha Koneru

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: