[
https://issues.apache.org/jira/browse/HBASE-15802?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15295467#comment-15295467
]
Hudson commented on HBASE-15802:
--------------------------------
FAILURE: Integrated in HBase-Trunk_matrix #941 (See
[https://builds.apache.org/job/HBase-Trunk_matrix/941/])
HBASE-15802 ConnectionUtils should use ThreadLocalRandom instead of (tedyu: rev
ae42c65cfde8539da2ccdf7b482f24a83efe829c)
*
hbase-server/src/test/java/org/apache/hadoop/hbase/client/TestConnectionUtils.java
* hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
> ConnectionUtils should use ThreadLocalRandom instead of Random
> ---------------------------------------------------------------
>
> Key: HBASE-15802
> URL: https://issues.apache.org/jira/browse/HBASE-15802
> Project: HBase
> Issue Type: Improvement
> Reporter: Hiroshi Ikeda
> Assignee: Matt Warhaftig
> Priority: Minor
> Attachments: hbase-15802.patch
>
>
> {code}
> public final class ConnectionUtils {
> ...skip...
> private static final Random RANDOM = new Random();
> {code}
> In general, static fields are accessed by multi-threads. The class Random is
> thread-safe but ThreadLocalRandom is more preferable because of less
> contention.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)