ThinkerLei commented on code in PR #6429:
URL: https://github.com/apache/hadoop/pull/6429#discussion_r1450236578


##########
hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocolPB/PBHelperClient.java:
##########
@@ -795,7 +798,12 @@ static public DatanodeInfo convert(DatanodeInfoProto di) {
       long nonDFSUsed = di.getCapacity() - di.getDfsUsed() - di.getRemaining();
       dinfo.setNonDfsUsed(nonDFSUsed < 0 ? 0 : nonDFSUsed);
     }
-    return dinfo.build();
+
+    DatanodeInfo buildInfo = dinfo.build();
+    if (di.hasSoftwareVersion()) {

Review Comment:
   @zhangshuyan0 Thank you very much for your comment, I will modify it soon.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to