[ https://issues.apache.org/jira/browse/HIVE-21426?focusedWorklogId=211227&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-211227 ]
ASF GitHub Bot logged work on HIVE-21426: ----------------------------------------- Author: ASF GitHub Bot Created on: 11/Mar/19 19:09 Start Date: 11/Mar/19 19:09 Worklog Time Spent: 10m Work Description: BELUGABEHR commented on pull request #565: HIVE-21426: Remove Utilities Global Random URL: https://github.com/apache/hive/pull/565 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 211227) Time Spent: 10m Remaining Estimate: 0h > 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 > > 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)