Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3317

Replace UUID.randomUUID with deterministic PRNG

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v2.5.0
    • Security
    • None

    Description

      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

      new UUID(ThreadLocalRandom.current().nextLong(), ThreadLocalRandom.current().nextLong())
      

      Attachments

        Issue Links

          Activity

            People

              Aron.tao Jiatao Tao
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: