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

Uncaught exception in QTestDatabaseHandler#afterTest causes unrelated test failures

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

    Description

      When for some reason we fail to cleanup a database after running a test using the qt:database option an exception is raised and propagates up the stack. Not catching it in QTestDatabaseHandler#afterTest disrupts subsequent cleanup actions, which are not executed, and leads to failures in subsequent tests which are not related.

      Moreover, the exception leaves QTestDatabaseHandler in an invalid state since the internal map holding the running databases is not updated.

      Attachments

        Activity

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

          People

            zabetak Stamatis Zampetakis Assign to me
            zabetak Stamatis Zampetakis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 40m
              40m

              Slack

                Issue deployment