Skip to content

HDDS-15199. Fix StartQuotaRepair client ignoring bucket list#10208

Open
jasonosullivan34 wants to merge 8 commits into
apache:masterfrom
jasonosullivan34:HDDS-15199-fix-start-quota-repair-buckets
Open

HDDS-15199. Fix StartQuotaRepair client ignoring bucket list#10208
jasonosullivan34 wants to merge 8 commits into
apache:masterfrom
jasonosullivan34:HDDS-15199-fix-start-quota-repair-buckets

Conversation

@jasonosullivan34
Copy link
Copy Markdown
Contributor

@jasonosullivan34 jasonosullivan34 commented May 7, 2026

What changes were proposed in this pull request?

HDDS-15199. Fix StartQuotaRepair client ignoring bucket list

Please describe your PR in detail:
Populate StartQuotaRepairRequest with the bucket list in OzoneManagerProtocolClientSideTranslatorPB.startQuotaRepair so scoped ozone repair quota start --buckets=... reaches the Ozone Manager instead of always running a full-cluster repair.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-15199

How was this patch tested?

Unit Tests & Manual Tests

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the startQuotaRepair client RPC construction so that a bucket-scoped quota repair request (ozone repair quota start --buckets=...) actually sends the specified bucket list to Ozone Manager, instead of always triggering an all-buckets repair.

Changes:

  • Populate StartQuotaRepairRequest with the provided bucket list in OzoneManagerProtocolClientSideTranslatorPB.startQuotaRepair.
  • Add unit tests verifying the request contains an empty bucket list when none is provided, and contains the specified buckets when provided.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java Adds bucket propagation into the StartQuotaRepairRequest protobuf sent to OM.
hadoop-ozone/common/src/test/java/org/apache/hadoop/ozone/om/protocolPB/TestOzoneManagerProtocolClientSideTranslatorPB.java Introduces tests asserting the outgoing OMRequest includes the expected bucket list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 2676 to 2680
public void startQuotaRepair(List<String> buckets) throws IOException {
OzoneManagerProtocolProtos.StartQuotaRepairRequest startQuotaRepairRequest =
OzoneManagerProtocolProtos.StartQuotaRepairRequest.newBuilder()
.addAllBuckets(buckets)
.build();
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.

2 participants