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

Vladimir Rodionov commented on HBASE-15509:
-------------------------------------------

{quote}
Why have you selected a thread local? For a given writer the fsBlockWriter is 
just one instance and when during flush/compaction we could use the same 
fsBlockWriter only. So can we try to solve this without ThreadLocal?
{quote}

Let me think about this :)

> Avoid copy of block data in HFileBlock$Writer.finishBlock
> ---------------------------------------------------------
>
>                 Key: HBASE-15509
>                 URL: https://issues.apache.org/jira/browse/HBASE-15509
>             Project: HBase
>          Issue Type: Sub-task
>          Components: HFile
>            Reporter: Vladimir Rodionov
>            Assignee: Vladimir Rodionov
>         Attachments: HBASE-15509-v1.patch, HBASE-15509-v2.patch
>
>
> This calls ByteArrayOutputStream.toByteArray() which creates a copy of data 
> block. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to