You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ssulav (via GitHub)" <gi...@apache.org> on 2026/03/01 17:46:07 UTC
Re: [PR] HDDS-14718. Update Remaining Allocatable to consider Free Space To Spare [ozone]
ssulav commented on code in PR #9826:
URL: https://github.com/apache/ozone/pull/9826#discussion_r2869546720
##########
hadoop-ozone/cli-admin/src/main/java/org/apache/hadoop/hdds/scm/cli/datanode/UsageInfoSubcommand.java:
##########
@@ -155,8 +155,8 @@ private void printInfo(DatanodeUsage info) {
System.out.printf("%-24s: %s (%s) %n", "Container Pre-allocated",
info.getCommitted() + " B", StringUtils.byteDesc(info.getCommitted()));
System.out.printf("%-24s: %s (%s) %n", "Remaining Allocatable",
- (info.getOzoneAvailable() - info.getCommitted()) + " B",
- StringUtils.byteDesc((info.getOzoneAvailable() - info.getCommitted())));
+ info.getRemainingAllocatable() + " B",
+ StringUtils.byteDesc(info.getRemainingAllocatable()));
Review Comment:
Added. Please review again
--
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