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

Steve Loughran commented on HBASE-22005:
----------------------------------------

A lot of filesystems don't implement the byte buffer operations, not just 
through laziness but because if the underlying APIs used for data just work at 
the stream level (e.g. all the http clients), its pretty suboptimal to try: 
we'd be streaming into a byte buffer, the app would be pulling out thinking 
they were getting a performance boost when they weren't etc.

See HADOOP-11867 for some discussion of this.

I'll accept a patch to let you use the StreamCapabilities to query all the way 
through a wrapped input stream to see if the feature is available, and once 
HADOOP-15691 is in, a check on a filesystem before even opening a file. This 
should let you decide when to switch to ByteBuffers.

> Use ByteBuff's refcnt to track the life cycle of data block
> -----------------------------------------------------------
>
>                 Key: HBASE-22005
>                 URL: https://issues.apache.org/jira/browse/HBASE-22005
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Zheng Hu
>            Assignee: Zheng Hu
>            Priority: Major
>         Attachments: HBASE-22005.HBASE-21879.v1.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to