Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-15910

Improvements in Hive Unit Test by using In-memory Derby DB

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • Tests
    • None

    Description

      Hive UT currently uses Derby DB with storage on disk which have some practical problems.
      1. The run-time of Hive unit tests are high as need to operate on the disk quite often.
      2. It can cause conflict if multiple test cases operates on the same table name (such as table being created already exist).

      To solve these problems, we shall use an in-memory storage option of Derby DB which can be even persisted if the test case demands that.
      https://db.apache.org/derby/docs/10.8/devguide/cdevdvlpinmemdb.html

      Attachments

        1. HIVE-15910.4.patch
          9 kB
          Wei Zheng
        2. HIVE-15910.3.patch
          6 kB
          Wei Zheng
        3. HIVE-15910.2.patch
          5 kB
          Wei Zheng
        4. HIVE-15910.06.patch
          4 kB
          Sankar Hariappan
        5. HIVE-15910.05.patch
          3 kB
          Sankar Hariappan
        6. HIVE-15910.01.patch
          0.4 kB
          Sankar Hariappan

        Issue Links

          Activity

            People

              sankarh Sankar Hariappan
              sankarh Sankar Hariappan
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: