-
Notifications
You must be signed in to change notification settings - Fork 9k
HADOOP-19394. Integrate with AAL's readVectored(). #7720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: trunk
Are you sure you want to change the base?
Conversation
@steveloughran @mukund-thakur could you please review this initial version, couple of small TODO's coming (more tests, and using the |
* @throws IOException IOE if any. | ||
*/ | ||
@Override | ||
public synchronized void readVectored(List<? extends FileRange> ranges, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just for my knowledge- why is this a synchronised method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry my miss.. we just discussed, this does not need to be synchronized. will cut
List<ObjectRange> objectRanges = new ArrayList<>(); | ||
|
||
for (FileRange range : ranges) { | ||
CompletableFuture<ByteBuffer> result = new CompletableFuture<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: may be rename to data?
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good, though you'll need to include the sdk update on this PR, which can then be split off separately
import org.apache.hadoop.fs.statistics.IOStatistics; | ||
import org.apache.hadoop.fs.statistics.StreamStatisticNames; | ||
|
||
import org.junit.Test; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ordering
why the SDK upgrade? |
Description of PR
This is the initial PR for readVectored().
TODO:
Before this can be merged AAL with readVectored() will need to released, planning a 1.2.0 release for next week.
How was this patch tested?
Testing in progress.