Skip to content

Conversation

@debiswal
Copy link
Contributor

@debiswal debiswal commented Mar 3, 2023

What changes were proposed in this pull request?

  1. Reprsent DataNode Link on SCM UI with HTTP & HTTPS Port
  2. Three configured case for every DN and SCM
    1. HTTP_ONLY -> the service does serve its webUI via HTTP
    2. HTTPS_ONLY -> the service does serve its webUI via HTTPS
    3. HTTP_AND_HTTPS -> the service does serve its webUI via HTTP and HTTPS both based on protocol scheme

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-7943

How was this patch tested?

Manually with JMX Response
Response Object:
[ {
"key" : "ozonesecure_datanode_3.ozonesecure_default",
"value" : [ {
"key" : "HTTPS",
"value" : "9883"
}, {
"key" : "OPSTATE",
"value" : "IN_SERVICE"
}, {
"key" : "COMSTATE",
"value" : "HEALTHY"
}, {
"key" : "HTTP",
"value" : "9882"
} ]
}, {
"key" : "ozonesecure_datanode_2.ozonesecure_default",
"value" : [ {
"key" : "HTTPS",
"value" : "9883"
}, {
"key" : "OPSTATE",
"value" : "IN_SERVICE"
}, {
"key" : "COMSTATE",
"value" : "HEALTHY"
}, {
"key" : "HTTP",
"value" : "9882"
} ]
}, {
"key" : "ozonesecure_datanode_1.ozonesecure_default",
"value" : [ {
"key" : "HTTPS",
"value" : "9883"
}, {
"key" : "OPSTATE",
"value" : "IN_SERVICE"
}, {
"key" : "COMSTATE",
"value" : "HEALTHY"
}, {
"key" : "HTTP",
"value" : "9882"
} ]
} ]

@fapifta
Copy link
Contributor

fapifta commented Mar 6, 2023

Hi @debiswal,

as I see, this PR contains the changes that are in #4278 and in #4289 which is certainly not good, we should be able to separate the contents of those PRs from this PR, though this PR is dependent on those other two.

@kerneltime kerneltime requested a review from fapifta March 6, 2023 17:12
startIndex = (pageIndex * $scope.RecordsToDisplay) - $scope.RecordsToDisplay;
endIndex = startIndex + parseInt($scope.RecordsToDisplay);
$scope.nodeStatus = nodeStatusCopy.slice(startIndex, endIndex);
$scope.handlePagination = (pageIndex, isDisabled) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a significant amount of unnecessary indentation added in scm.js. Could you please remove it?

String hostName = dni.getHostName();
DatanodeDetails.Port httpPort = dni.getPort(HTTP);
DatanodeDetails.Port httpsPort = dni.getPort(HTTPS);
NodeStatus nodestatus = dni.getNodeStatus();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code could potentially throw a NullPointerException if any of the variables nodestatus, health, or operationalState are null. Consider adding null checks for these variables to prevent this from happening.

@fapifta fapifta marked this pull request as draft March 28, 2023 22:18
@debiswal debiswal closed this Apr 5, 2023
@debiswal debiswal deleted the HDDS-7943 branch April 5, 2023 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants