priyeshkaratha opened a new pull request, #10408: URL: https://github.com/apache/ozone/pull/10408
## What changes were proposed in this pull request? This pull request implements the ListDirectoryBuckets API to support listing File System Optimized (FSO) directory buckets in the S3Gateway. It introduces the necessary response models, updates the RootEndpoint to handle these requests, and adds comprehensive unit tests. ## What is the link to the Apache JIRA HDDS-15450 ## How was this patch tested? Tested manually and using unit tests ``` bash-5.1$ aws s3api list-directory-buckets --endpoint-url http://ozone-s3g-1:9878 { "Buckets": [ { "Name": "fso-b1", "CreationDate": "2026-06-02T05:10:20.445Z", "BucketRegion": "us-east-1" }, { "Name": "fso-b2", "CreationDate": "2026-06-02T05:22:00.862Z", "BucketRegion": "us-east-1" }, { "Name": "fso-b3", "CreationDate": "2026-06-02T05:22:05.211Z", "BucketRegion": "us-east-1" }, { "Name": "fso-b4", "CreationDate": "2026-06-02T05:22:09.652Z", "BucketRegion": "us-east-1" } ] } bash-5.1$ aws s3api list-directory-buckets --endpoint-url http://ozone-s3g-1:9878 --max-directory-buckets 2 { "Buckets": [ { "Name": "fso-b1", "CreationDate": "2026-06-02T05:10:20.445Z", "BucketRegion": "us-east-1" }, { "Name": "fso-b2", "CreationDate": "2026-06-02T05:22:00.862Z", "BucketRegion": "us-east-1" } ], "ContinuationToken": "0000000666736f2d6232-c52df17c0a3e5538859217b3acd0e8a2b4febd747bbb94c38fd54ceac2a5d35f" } bash-5.1$ aws s3api list-directory-buckets --endpoint-url http://ozone-s3g-1:9878 --max-directory-buckets 2 --continuation-token=0000000666736f2d6232-c52df17c0a3e5538859217b3acd0e8a2b4febd747bbb94c38fd54ceac2a5d35f { "Buckets": [ { "Name": "fso-b3", "CreationDate": "2026-06-02T05:22:05.211Z", "BucketRegion": "us-east-1" }, { "Name": "fso-b4", "CreationDate": "2026-06-02T05:22:09.652Z", "BucketRegion": "us-east-1" } ] } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
