[
https://issues.apache.org/jira/browse/HBASE-18714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16146296#comment-16146296
]
stack commented on HBASE-18714:
-------------------------------
Patch seems fine.
Setting the flags on underlying stream wasn't having the same effect?
> The dropBehind and readahead don't be applied when useHBaseChecksum is enabled
> ------------------------------------------------------------------------------
>
> Key: HBASE-18714
> URL: https://issues.apache.org/jira/browse/HBASE-18714
> Project: HBase
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: Chia-Ping Tsai
> Priority: Minor
> Fix For: 2.0.0-alpha-3
>
> Attachments: HBASE-18714.v0.patch
>
>
> {code:title=FSDataInputStreamWrapper}
> private void setStreamOptions(FSDataInputStream in) {
> try {
> this.stream.setDropBehind(dropBehind);
> } catch (Exception e) {
> // Skipped.
> }
> if (readahead >= 0) {
> try {
> this.stream.setReadahead(readahead);
> } catch (Exception e) {
> // Skipped.
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)