You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2014/11/19 01:08:35 UTC
[jira] [Commented] (HBASE-12529) Use ThreadLocalRandom for
RandomQueueBalancer
[ https://issues.apache.org/jira/browse/HBASE-12529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14217094#comment-14217094 ]
stack commented on HBASE-12529:
-------------------------------
+1 Was going to go through our code base and see where we could use this java7 feature in place of expensive new Randoms. Thanks [~mbertozzi]
> Use ThreadLocalRandom for RandomQueueBalancer
> ---------------------------------------------
>
> Key: HBASE-12529
> URL: https://issues.apache.org/jira/browse/HBASE-12529
> Project: HBase
> Issue Type: Improvement
> Components: IPC/RPC
> Affects Versions: 2.0.0, 0.99.1, 0.98.6.1
> Reporter: Matteo Bertozzi
> Assignee: Matteo Bertozzi
> Priority: Minor
> Fix For: 2.0.0, 0.98.9, 0.99.2
>
> Attachments: HBASE-12529-v0.patch
>
>
> looks like the Random in RandomQueueBalancer is now the main cause of contention in the rpc queue insertion. we should replace that Random with a ThreadLocalRandom.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)