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

Hadoop QA commented on HBASE-15702:
-----------------------------------

| (x) *{color:red}-1 overall{color}* |
\\
\\
|| Vote || Subsystem || Runtime || Comment ||
| {color:blue}0{color} | {color:blue} reexec {color} | {color:blue}  0m  
0s{color} | {color:blue} Docker mode activated. {color} |
| {color:red}-1{color} | {color:red} patch {color} | {color:red}  0m  7s{color} 
| {color:red} HBASE-15702 does not apply to master. Rebase required? Wrong 
Branch? See https://yetus.apache.org/documentation/0.4.0/precommit-patchnames 
for help. {color} |
\\
\\
|| Subsystem || Report/Notes ||
| JIRA Issue | HBASE-15702 |
| JIRA Patch URL | 
https://issues.apache.org/jira/secure/attachment/12801400/HBASE-15702_v4.patch |
| Console output | 
https://builds.apache.org/job/PreCommit-HBASE-Build/7451/console |
| Powered by | Apache Yetus 0.4.0   http://yetus.apache.org |


This message was automatically generated.



> Improve PerClientRandomNonceGenerator
> -------------------------------------
>
>                 Key: HBASE-15702
>                 URL: https://issues.apache.org/jira/browse/HBASE-15702
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Hiroshi Ikeda
>            Assignee: Heng Chen
>            Priority: Trivial
>         Attachments: HBASE-15702.patch, HBASE-15702_v1.patch, 
> HBASE-15702_v2.patch, HBASE-15702_v3.patch, HBASE-15702_v4.patch
>
>
> PerClientRandomNonceGenerator can be exposed to all the threads via the 
> static field ConnectionManager.nonceGenerator, but 
> PerClientRandomNonceGenerator uses Random, which should be ThreadLocalRandom 
> or something. (See javadoc of Random.)
> Moreover, ConnectionManager creates or refers the singleton instance of 
> PerClientThreadLocalRandom with a lock or volatile, but it should be created 
> as a static final field in PerClientThreadLocalRandom itself, and the 
> creation will be postponed until the field is actually refereed and the class 
> is being initialized.
> The same can be said for ConnectionManager.NoNonceGenerator.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to