Attila Doroszlai created HDDS-13693:
---------------------------------------

             Summary: NodeStatusInfo shows HTTP port instead of HTTPS
                 Key: HDDS-13693
                 URL: https://issues.apache.org/jira/browse/HDDS-13693
             Project: Apache Ozone
          Issue Type: Bug
          Components: Ozone Datanode
    Affects Versions: 2.0.0
            Reporter: Zita Dombi
            Assignee: Attila Doroszlai


{code:title=https://github.com/apache/ozone/blob/053b55436ceb29504fc2f5529538322d84c3032f/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/HddsDatanodeService.java#L306-L316}
        if (policy.isHttpEnabled()) {
          int httpPort = httpServer.getHttpAddress().getPort();
          datanodeDetails.setPort(DatanodeDetails.newPort(HTTP, httpPort));
          serviceRuntimeInfo.setHttpPort(String.valueOf(httpPort));
        }

        if (policy.isHttpsEnabled()) {
          int httpsPort = httpServer.getHttpAddress().getPort();
          datanodeDetails.setPort(DatanodeDetails.newPort(HTTPS, httpsPort));
          serviceRuntimeInfo.setHttpsPort(String.valueOf(httpsPort));
        }
{code}

HTTPS port is incorrectly taken from {{getHttpAddress}} instead of 
{{getHttpsAddress}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to