Skip to content

Conversation

@szetszwo
Copy link
Contributor

What changes were proposed in this pull request?

DatanodeDiskBalancerInfoType is used in DiskBalancerReportSubcommand and DiskBalancerStatusSubcommand. However, it is not needed. STATUS is a super set of REPORT – it includes additional details not included in REPORT. The servers could simply build the reply proto with all the additional details in order to simplify the code. Then, the commands could choose what to display.

What is the link to the Apache JIRA

HDDS-14164

How was this patch tested?

By updating existing tests.

@szetszwo szetszwo requested a review from ChenSammi December 12, 2025 23:20
Copy link
Contributor

@Gargi-jais11 Gargi-jais11 left a comment

Choose a reason for hiding this comment

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

Thanks @szetszwo for the patch.
The removal of DatanodeDiskBalancerInfoType simplifies the DiskBalancer RPC interface and cleans up both client and server-side logic. All dependent code paths and tests appear to be updated correctly.

LGTM!

@ChenSammi Please review this patch.

Copy link
Contributor

@ChenSammi ChenSammi left a comment

Choose a reason for hiding this comment

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

Thanks @szetszwo for this improvement, and @Gargi-jais11 for the review.

@ChenSammi ChenSammi merged commit 64fa938 into apache:HDDS-5713 Dec 15, 2025
44 checks passed
@szetszwo
Copy link
Contributor Author

@Gargi-jais11 , @ChenSammi , thanks for reviewing this!

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