[ https://issues.apache.org/jira/browse/HIVE-21426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16790820#comment-16790820 ]
Hive QA commented on HIVE-21426: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12962129/HIVE-21426.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:green}SUCCESS:{color} +1 due to 15824 tests passed Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/16469/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/16469/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-16469/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase {noformat} This message is automatically generated. ATTACHMENT ID: 12962129 - PreCommit-HIVE-Build > Remove Utilities Global Random > ------------------------------ > > Key: HIVE-21426 > URL: https://issues.apache.org/jira/browse/HIVE-21426 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Affects Versions: 4.0.0, 3.2.0 > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Minor > Labels: pull-request-available > Attachments: HIVE-21426.1.patch, HIVE-21426.1.patch > > Time Spent: 10m > Remaining Estimate: 0h > > https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java#L253 > Remove global {{Random}} object in favor of {{ThreadLocalRandom}}. > {quote} > ThreadLocalRandom is initialized with an internally generated seed that may > not otherwise be modified. When applicable, use of ThreadLocalRandom rather > than shared Random objects in concurrent programs will typically encounter > much less overhead and contention. > {quote} > https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ThreadLocalRandom.html -- This message was sent by Atlassian JIRA (v7.6.3#76005)