You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/05/26 00:22:33 UTC

[GitHub] [ozone] neils-dev commented on a diff in pull request #3429: HDDS-6767. Add network location in Recon's datanode page

neils-dev commented on code in PR #3429:
URL: https://github.com/apache/ozone/pull/3429#discussion_r882216954


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/NodeEndpoint.java:
##########
@@ -148,6 +148,7 @@ public Response getDatanodes() {
           .withBuildDate(nodeManager.getBuildDate(datanode))
           .withLayoutVersion(
               dnInfo.getLastKnownLayoutVersion().getMetadataLayoutVersion())
+          .withNetworkLocation(datanode.getNetworkLocation())
           .build());

Review Comment:
   Thanks @symious.  Is it useful to define an interface to get the network location from the nodeManager as well, such as defining `nodeManager.getNetworkLocation` that returns `inMemoryDatanodeDetails` for the networkLocation?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org