Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19164

Avoid UUID.randomUUID in tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.1.0
    • test

    Description

      We have a lot of places in our test code where we use UUID.randomUUID to generate table names or paths for uniqueness. Unfortunately, this uses up a good chunk of system entropy, since Sun chose that random UUID's should use the NativePRNGBlocking implementation.

      We don't need to block on entropy for random bits to pick a random table name in a test, so we can use something that doesn't strain the system too much - secure random can be a source of problems on some VM or containers.

      Attachments

        1. HBASE-19164.master.001.patch
          53 kB
          Sahil Aggarwal
        2. HBASE-19164.master.002.patch
          45 kB
          Sahil Aggarwal
        3. HBASE-19164.master.003.patch
          45 kB
          Sahil Aggarwal
        4. HBASE-19164.master.004.patch
          48 kB
          Sahil Aggarwal
        5. HBASE-19164.master.005.patch
          44 kB
          Sahil Aggarwal
        6. HBASE-19164.master.006.patch
          49 kB
          Sahil Aggarwal
        7. HBASE-19164.master.007.patch
          50 kB
          Sahil Aggarwal

        Activity

          People

            awked06 Sahil Aggarwal
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: