Skip to content

HDDS-16699. Combine S3 context and bucket lookup for MPU initiation - #11458

Open
rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-16699
Open

rich7420 wants to merge 1 commit into
apache:masterfrom
rich7420:HDDS-16699

Conversation

@rich7420

@rich7420 rich7420 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

MPU initiation currently resolves the S3 volume context and fetches bucket metadata in separate OM requests. This change returns the bucket metadata and user principal together through InfoBucket, and uses that result in S3 Gateway.

The client gates the combined request on OM version support and retains the existing two-request path for older OMs. Volume and bucket validation, ACL checks, tenant principal mapping, bucket-link resolution, and the expected-owner check retain their existing order and behavior.

What is the link to the Apache JIRA?

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

How was this patch tested?

  • https://github.com/rich7420/ozone/actions/runs/37112353330
  • Added coverage in TestRpcClient, TestOzoneManagerS3BucketInfo, TestOzoneManagerRequestHandler, TestInitiateMultipartUpload, TestPermissionCheck, and TestMultiTenantVolume for the combined request, older-OM fallback, errors, ACLs, tenant context, and bucket links.

Copilot AI balanced review requested due to automatic review settings October 9, 2026 22:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@rich7420
rich7420 marked this pull request as draft October 9, 2026 22:38
@github-actions github-actions Bot added om client s3 S3 Gateway labels Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants