hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duo Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-18714) The dropBehind and readahead don't be applied when useHBaseChecksum is enabled
Date Wed, 30 Aug 2017 01:36:00 GMT

    [ https://issues.apache.org/jira/browse/HBASE-18714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16146465#comment-16146465
] 

Duo Zhang commented on HBASE-18714:
-----------------------------------

[~stack] We pass {{streamNoFsChecksum}} in {{prepareForBlockReader}}. Nice catch. +1.

> 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)

Mime
View raw message