Skip to content
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

[HDFS-14585]Backport HDFS-8901 Use ByteBuffer in DFSInputStream#read to bran… #997

Closed
wants to merge 1 commit into from

Conversation

leosunli
Copy link
Contributor

…ch-2.8

Signed-off-by: sunlisheng sunlisheng@xiaomi.com

@leosunli leosunli changed the title [HDFS-14585]Backport HDFS-8901 Use ByteBuffer in striping positional read to bran… [HDFS-14585][HDFS-14483]Backport HDFS-8901 Use ByteBuffer in striping positional read to bran… Jun 21, 2019
@leosunli leosunli changed the title [HDFS-14585][HDFS-14483]Backport HDFS-8901 Use ByteBuffer in striping positional read to bran… [HDFS-14585]Backport HDFS-8901 Use ByteBuffer in striping positional read to bran… Jun 21, 2019
@openinx
Copy link
Member

openinx commented Jun 21, 2019

@toddlipcon @jojochuang do you have any bandwidth to review this backport ?

@jojochuang
Copy link
Contributor

Copying&Updating my comments from the jira

Hi Lisheng Sun We typically backport from the newer branches to older branches.
The branch-2.8 is the oldest active branch. Would you please rebase on branch-2?
Branch-2.8 is near EOL. There's no point backporting something from branch-3.x just for branch-2.8

asflicense warning is false alarm. There are minor checkstyle warning that can be cleaned easily. The findbugs warning looks fishy. Looking back in my mailbox, the same warning came out a few times for branch-2. So probably unrelated, but we should file a jira for that.

Suggest to update the jira summary, as this is essentially a reimplementation of HDFS-8901 for replicated blocks. Hadoop 2 does not support EC, and so there's no need to support striped blocks. How about "Reimplement HDFS-8901 for replicated block positional read in branch-2"?
It is confusing if the jira summary is not updated to reflect the fact that striped blocks are not included.

Do we need any test? Or is this purely an performance improvement and existing tests cover it all?

@leosunli
Copy link
Contributor Author

@jojochuang
I issue this Jira is that HBase wishes HDFS-3246 is supported in branch-2.8.x. HDFS-14483 is that backport HDFS-3246 ByteBuffer pread interface to branch-2.8.x. But HDFS-14483 is blocked by not supporting ByteBuffer in DFSInputStream. HDFS-8901 support ByteBuffer in DFSInputStream. So I issue this Jira that only backport part of the conent of HDFS-8901 about byte[] to ByteBuffer.

And the existing tests cover it all, and I do unit test.

Could you suggest this issue to branch-2, branch-2.8 or HDFS-14483 direct support ByteBuffer in DFSInputStream? I think this issue to branch-2.8 is relatively reasonable and the change is relatively small. Thank you.

@openinx
Copy link
Member

openinx commented Jun 21, 2019

If branch-2.8 will be EOL (as @jojochuang said), then I think we need to backport this patch to branch-2.9 & branch-2, and our HBase need to upgrade from 2.8.5 to 2.9.3 (maybe, or some future hadoop release).
FYI @leosunli

@leosunli leosunli changed the title [HDFS-14585]Backport HDFS-8901 Use ByteBuffer in striping positional read to bran… [HDFS-14585]Backport HDFS-8901 Use ByteBuffer in DFSInputStream#read to bran… Jun 21, 2019
Signed-off-by: sunlisheng <sunlisheng@xiaomi.com>
@leosunli
Copy link
Contributor Author

@jojochuang @openinx I backport this patch to branch-2.9 & branch-2 Thanks.

@jojochuang
Copy link
Contributor

Close. Work is done.

@jojochuang jojochuang closed this Jul 26, 2019
shanthoosh pushed a commit to shanthoosh/hadoop that referenced this pull request Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants