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

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

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.01.patch
          0.4 kB
          Sankar Hariappan
        2. HIVE-15910.05.patch
          3 kB
          Sankar Hariappan
        3. HIVE-15910.06.patch
          4 kB
          Sankar Hariappan
        4. HIVE-15910.2.patch
          5 kB
          Wei Zheng
        5. HIVE-15910.3.patch
          6 kB
          Wei Zheng
        6. HIVE-15910.4.patch
          9 kB
          Wei Zheng

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment