HDDS-7231. Integrate the GetKeyInfo API to key read flows#3800
HDDS-7231. Integrate the GetKeyInfo API to key read flows#3800kerneltime merged 7 commits intoapache:masterfrom
Conversation
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java
Outdated
Show resolved
Hide resolved
|
There is a call to looupKey here: Should that be changed to getKeyInfo()? |
|
There is a call to lookupFile() here: |
There was a problem hiding this comment.
when does the assumeS3Context parameter get set to true?
There was a problem hiding this comment.
Great catch. The parameter will be used as per HDDS-7324 to improve S3G GET performance.
There was a problem hiding this comment.
I think this is a very nicely written class of tests. A few minor nits below.
There was a problem hiding this comment.
Thanks for the very detailed review, @GeorgeJahad .
.../integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmContainerLocationCache.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmContainerLocationCache.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmContainerLocationCache.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmContainerLocationCache.java
Outdated
Show resolved
Hide resolved
.../integration-test/src/test/java/org/apache/hadoop/ozone/om/TestOmContainerLocationCache.java
Outdated
Show resolved
Hide resolved
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/MiniOzoneClusterImpl.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/TestBlockInputStream.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/client/src/test/java/org/apache/hadoop/hdds/scm/storage/TestBlockInputStream.java
Outdated
Show resolved
Hide resolved
Yes, I cleaned that up as well.
Thanks, |
hadoop-hdds/client/src/main/java/org/apache/hadoop/hdds/scm/storage/BlockInputStream.java
Show resolved
Hide resolved
…uld be up to the retryPolicy.
…uld be up to the retryPolicy.
What changes were proposed in this pull request?
This is a part of the container location cache implementation(HDDS-7223), specified in Client Interaction design.
This PR includes the changes to integrate the GetKeyInfo API to key read flows, keeping client code backward compatible with previous OM versions.
https://issues.apache.org/jira/browse/HDDS-7231
Details about client interaction changes:
Before:
After:
Client vs new OM.
forceCacheUpdate = falseto tell OM to take container location from its cache.forceCacheUpdate = truerefresh block location from OM and tell OM to call SCM for updated container locations.Client vs old OM.
How was this patch tested?
Standard CI: https://github.com/duongkame/ozone/actions/runs/3191413426/jobs/5207698694
Manual verification for the following cases: