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

Support database reuse when using qt:database option

Log workAgile BoardRank to TopRank to BottomBulk Copy AttachmentsBulk Move AttachmentsAdd voteVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Testing Infrastructure
    • None

    Description

      With HIVE-25594 it is possible to initialize and use various types of databases in tests. At the moment all the supported databases rely on docker containers which are initialized/destroyed in per test basis. This is good in terms of test isolation but it brings a certain performance overhead slowing down tests. At the moment it is fine since the feature it is not widely used  but it would be good to have a way to reuse a database in multiple qfiles. 

      The developper could specify in the qfile if they want to reuse a container (if it is possible) by passing certain additional options. The declaration could look like below:

      --!qt:database:type=mysql;script=q_test_country_table.sql;reuse=true

      Attachments

        Issue Links

        Activity

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

          People

            Unassigned Unassigned Assign to me
            zabetak Stamatis Zampetakis

            Dates

              Created:
              Updated:

              Slack

                Issue deployment