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

Sebastien Barnoud commented on HBASE-22634:
-------------------------------------------

For the perf improvement, it depends on so many things ... 
 1) huge, because of the default pool size set to 1 in HDP 
(hbase.htable.threads.max is not set and not documented in HDP) 
 2) avoids a plenty of errors at runtime when hbase.htable.threads.max > 1
 3) But still huge because without the patch 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/BufferedMutatorImpl.java
 becomes synchronous!
{code:java}
asf = ap.submit(createTask(access));
}
// DON'T do the wait in the try-with-resources. Otherwise, the undealt 
mutations won't
// be released.
asf.waitUntilDone();{code}



> Improve performance of BufferedMutator
> --------------------------------------
>
>                 Key: HBASE-22634
>                 URL: https://issues.apache.org/jira/browse/HBASE-22634
>             Project: HBase
>          Issue Type: Improvement
>          Components: Client
>    Affects Versions: 2.1.5
>         Environment: HDP 2.6.5
> Linux RedHat
>            Reporter: Sebastien Barnoud
>            Priority: Major
>         Attachments: HBASE-22634.001.branch-2.patch
>
>
> The default ThreadPoolExecutor uses a default size of 1 (property 
> hbase.htable.threads.max). When using a size > 1, we still encountered poor 
> performance and exception while submitting to the pool (pool exceed its 
> capacity).
> This patch propose a fix on different issues encountered when the pool size 
> is > 1:
>  * thread safety issue
>  * concurrent cleanup by Netty and the "legacy" code
>  * errors in the backpressure
>  * Netty memory leak
> And propose a BufferedMutatorThreadPoolExecutor which:
>  * uses hbase.client.max.total.tasks as the default size (instead of 1)
>  * some usefull metrics
>  



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

Reply via email to