Skip to content

HDDS-15624. Resolve link bucket properties in listBucket.#10745

Draft
SaketaChalamchala wants to merge 1 commit into
apache:masterfrom
SaketaChalamchala:HDDS-15624-2
Draft

HDDS-15624. Resolve link bucket properties in listBucket.#10745
SaketaChalamchala wants to merge 1 commit into
apache:masterfrom
SaketaChalamchala:HDDS-15624-2

Conversation

@SaketaChalamchala

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Link buckets created with ozone sh bucket link store link metadata (sourceVolume, sourceBucket) plus placeholder operational fields (layout, replication, quotas, etc.). getBucketInfo already resolved source properties server-side (since HDDS-9117), but listBuckets returned raw DB rows. UIs and clients that use operational fields off of the list buckets response show incorrect layout/replication for links (e.g. cluster default FSO instead of source OBS).

This change applies the same server-side link resolution to listBuckets by extracting shared enrichment logic used by both getBucketInfo and listBuckets.

What is the link to the Apache JIRA

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

How was this patch tested?

Unit Tests.

(cherry picked from commit 228f523de68218907d4658aae0df59a1321a6f35)
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.

1 participant