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

ASF subversion and git services commented on KYLIN-3317:
--------------------------------------------------------

Commit 648379867850f4dba6187efe6fd22e2b57d5580e in kylin's branch 
refs/heads/master from tttMelody
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=6483798 ]

KYLIN-3317, replace UUID.randomUUID with new 
UUID(ThreadLocalRandom.current().nextLong(), 
ThreadLocalRandom.current().nextLong()).


> Replace UUID.randomUUID with deterministic PRNG
> -----------------------------------------------
>
>                 Key: KYLIN-3317
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3317
>             Project: Kylin
>          Issue Type: Task
>          Components: Security
>            Reporter: Ted Yu
>            Assignee: jiatao.tao
>            Priority: Major
>             Fix For: v2.5.0
>
>
> Currently UUID.randomUUID is called in various places in the code base.
> * It is non-deterministic.
> * It uses a single secure random for UUID generation. This uses a single JVM 
> wide lock, and this can lead to lock contention and other performance 
> problems.
> We should move to something that is deterministic by using seeded PRNGs
> {code}
> new UUID(ThreadLocalRandom.current().nextLong(), 
> ThreadLocalRandom.current().nextLong())
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to