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

Uncaught exception in QTestDatabaseHandler#afterTest causes unrelated test failures

    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

        Issue Links

          Activity

            People

              zabetak Stamatis Zampetakis
              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