Skip to content

HDDS-15511. Implement Ozone client API's for bucket tagging#10533

Merged
Gargi-jais11 merged 2 commits into
apache:masterfrom
Gargi-jais11:HDDS-15511
Jun 30, 2026
Merged

HDDS-15511. Implement Ozone client API's for bucket tagging#10533
Gargi-jais11 merged 2 commits into
apache:masterfrom
Gargi-jais11:HDDS-15511

Conversation

@Gargi-jais11

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

  1. Expose getBucketTagging / putBucketTagging / deleteBucketTagging on Ozone client with version gating.
  • ClientProtocol.java / OzoneManagerProtocol.java — interface methods
  • OzoneManagerProtocolClientSideTranslatorPB.java — PB translation
  • RpcClient.java — getBucketTagging, putBucketTagging, deleteBucketTagging with S3_BUCKET_TAGGING_API version gate
  • OzoneBucket.java — public client API
  • OzoneRpcClientTests.java integration tests:
    - testPutBucketTagging (overwrite semantics)
    - testGetBucketTagging
    - testDeleteBucketTagging
    - Parameterized across bucket layouts (LEGACY, FILE_SYSTEM_OPTIMIZED, OBJECT_STORE)
  1. nit:
    If we could introduce a base class for bucket tagging, or make delete request to derive put request.
    the duplication between ‎S3PutBucketTaggingRequest and ‎S3DeleteBucketTaggingRequest
    Discussion link

What is the link to the Apache JIRA

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

How was this patch tested?

Added unit tests for 'OzoneRpcClientTests`.

@Gargi-jais11 Gargi-jais11 marked this pull request as ready for review June 17, 2026 13:05

@ivandika3 ivandika3 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.

@Gargi-jais11 Thanks for the patch. Overall LGTM. Left some comments.

Comment thread hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java Outdated

@ivandika3 ivandika3 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.

@Gargi-jais11 Thanks for the update. LGTM +1.

It will be good to add S3 integration tests, but can be done in other patches.

@Gargi-jais11

Copy link
Copy Markdown
Contributor Author

@Gargi-jais11 Thanks for the update. LGTM +1.

It will be good to add S3 integration tests, but can be done in other patches.

Yes I will add all integration tests in the last PR once it's end to end done.

@Gargi-jais11 Gargi-jais11 requested a review from chungen0126 June 30, 2026 05:58

@chungen0126 chungen0126 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.

+1 LGTM

@Gargi-jais11

Copy link
Copy Markdown
Contributor Author

Thanks @ivandika3 @chungen0126 for reviewing the patch.

@Gargi-jais11 Gargi-jais11 merged commit db8f56e into apache:master Jun 30, 2026
47 checks passed
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.

4 participants