kylin-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (KYLIN-3317) Replace UUID.randomUUID with deterministic PRNG
Date Mon, 13 Aug 2018 07:06:00 GMT


ASF GitHub Bot commented on KYLIN-3317:

tttMelody opened a new pull request #197: KYLIN-3317, replace UUID.randomUUID with new UUID(ThreadLocalRandom.current().nextLong(),
   …urrent().nextLong(), ThreadLocalRandom.current().nextLong()).

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> Replace UUID.randomUUID with deterministic PRNG
> -----------------------------------------------
>                 Key: KYLIN-3317
>                 URL:
>             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

View raw message