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 2021/05/13 10:19:15 UTC

[GitHub] [ozone] ChenSammi commented on pull request #2246: HDDS-5209. Datanode hasEnoughSpace check should apply on volume instead of global DN

ChenSammi commented on pull request #2246:
URL: https://github.com/apache/ozone/pull/2246#issuecomment-840464399


   Hi @guihecheng ,   we have leverage the DatanodeInfo value. It seems there is no need to add new API in NodeManager.  You can refer to these piece of codes,  
   
     final DatanodeInfo datanodeInfo = nodeStateManager
             .getNode(datanodeDetails);
         final List<StorageReportProto> storageReportProtos = datanodeInfo
             .getStorageReports();
         for (StorageReportProto reportProto : storageReportProtos) {
           capacity += reportProto.getCapacity();
           used += reportProto.getScmUsed();
           remaining += reportProto.getRemaining();
         }


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

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