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 2023/01/02 13:34:40 UTC

[GitHub] [ozone] dombizita commented on a diff in pull request #4135: HDDS-7634. Recon: Show Datanode UUID on Pipeline page

dombizita commented on code in PR #4135:
URL: https://github.com/apache/ozone/pull/4135#discussion_r1060035831


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/PipelineEndpoint.java:
##########
@@ -77,7 +77,7 @@ public Response getPipelines() {
       UUID pipelineId = pipeline.getId().getId();
       List<String> datanodes = new ArrayList<>();
       PipelineMetadata.Builder builder = PipelineMetadata.newBuilder();
-      pipeline.getNodes().forEach(node -> datanodes.add(node.getHostName()));
+      pipeline.getNodes().forEach(node -> datanodes.add(node.getHostName() + "/" + node.getUuid()));

Review Comment:
   I agree with @myskov, it would be better to have list of `DatanodeDetails` as `datanodes`, instead of string and attach the UUID with a slash.



##########
hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/src/views/pipelines/pipelines.tsx:
##########
@@ -111,7 +111,15 @@ const COLUMNS = [
     dataIndex: 'datanodes',
     key: 'datanodes',
     isSearchable: true,
-    render: (datanodes: string[]) => <div>{datanodes.map(datanode => <div key={datanode}>{datanode}</div>)}</div>
+    render: (datanodes: string[]) => <div> {datanodes.map(datanode =>
+      <div key={datanode}>
+            <div className='uuidtooltip'>
+            <Tooltip placement='top' title={`Uuid - ${datanode && datanode.split("/")[1]}`} getPopupContainer={(triggerNode) => triggerNode}>

Review Comment:
   ```suggestion
               <Tooltip placement='top' title={`UUID: ${datanode && datanode.split("/")[1]}`} getPopupContainer={(triggerNode) => triggerNode}>
   ```



-- 
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