Skip to content

Conversation

@tanvipenumudy
Copy link
Contributor

@tanvipenumudy tanvipenumudy commented Apr 15, 2025

What changes were proposed in this pull request?

As of today, the readFile API for the OFS client makes two round trips to the Ozone Manager impacting performance:

  • First, it calls getBucketInfo() to fetch information about the bucket.
  • Then, it calls getKeyInfo() to fetch information about the actual file being read.

However, the first call to obtain getBucketInfo() is not required and can safely be removed.

What is the link to the Apache JIRA

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

How was this patch tested?

Green Git CI: https://github.com/tanvipenumudy/ozone/actions/runs/14463440199/ (existing test-suite should pass)

@tanvipenumudy
Copy link
Contributor Author

Closing the PR, as this way we will be able to read OBS buckets as part of the FS API. To completely eliminate the getBucketInfo() calls on the client-side, we need to perform server-side refactoring for validations such as OzoneFSUtils#validateBucketLayout.

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