Skip to content

HDDS-14718. Update Remaining Allocatable to consider Free Space To Spare#9826

Open
ssulav wants to merge 4 commits intoapache:masterfrom
ssulav:HDDS-14718
Open

HDDS-14718. Update Remaining Allocatable to consider Free Space To Spare#9826
ssulav wants to merge 4 commits intoapache:masterfrom
ssulav:HDDS-14718

Conversation

@ssulav
Copy link
Contributor

@ssulav ssulav commented Feb 25, 2026

What changes were proposed in this pull request?

In the datanode usgae info, update Remaining Allocatable to also consider Free Space To Spare.

Right now, it is showing the capacity only in the allocatable which is not totally true, as min free space to spare should be excluded.

What is the link to the Apache JIRA

HDDS-14718

How was this patch tested?

It is to be tested manually.

Copy link
Contributor

@sreejasahithi sreejasahithi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ssulav for fixing this.

@ssulav ssulav requested a review from sreejasahithi February 26, 2026 18:17
Copy link
Contributor

@siddhantsangwan siddhantsangwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment below.

Comment on lines +158 to +159
info.getRemainingAllocatable() + " B",
StringUtils.byteDesc(info.getRemainingAllocatable()));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make it even easier to understand for the user, we can add the formula used for calculating remainingAllocatable as a helpful string in brackets. Some of the fields above are doing the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants