-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
HBASE-27033 Backport "HBASE-27013 Introduce read all bytes when using… #4429
Conversation
… pread for prefetch" - introduce optional flag `hfile.pread.all.bytes.enabled` for pread that must read full bytes with the next block header
please see the original commit from branch-2 43e8c11 |
🎊 +1 overall
This message was automatically generated. |
🎊 +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.
Backport lgtm (should not have a change in functionality to the 2.4 line). Looks like you also already have jira marked for 2.4.13 rather than the in-flight 2.4.12)
if ( | ||
!BlockIOUtils.preadWithExtra(dest, istream, fileOffset, size, extraSize, isPreadAllBytes) | ||
) { |
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.
if ( | |
!BlockIOUtils.preadWithExtra(dest, istream, fileOffset, size, extraSize, isPreadAllBytes) | |
) { | |
if (!BlockIOUtils.preadWithExtra( | |
dest, istream, fileOffset, size, extraSize, isPreadAllBytes)) { |
Typically, we break long lines with method invocations around the arguments, rather than break up the if
condition itself.
However, if checkstyle is happy with this how it is, then it's fine :)
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.
that was modified by spotless:apply
, and yet the checkstyle was happy about it
… pread for prefetch" (apache#4429) - introduce optional flag `hfile.pread.all.bytes.enabled` for pread that must read full bytes with the next block header Signed-off-by: Ankit Singhal <[email protected]> Signed-off-by: Josh Elser <[email protected]> (cherry picked from commit 5b31975) Change-Id: I6caba0ad25e8feb38f6b7d45ea957e5890ab8154
… pread for prefetch"
hfile.pread.all.bytes.enabled
for pread that must read full bytes with the next block header