Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-85483

ShardingTestFixtureCommon dtor invariant swallows exceptions

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Catalog and Routing
    • 1

      While iterating on a unit test in db_s_config_server_test I started getting a new, unexpected error

      ShardingTestFixtureCommon::tearDown() must have been called before destruction
      

      This was surprising because I hadn't touched anything about the setup/teardown of the test. After some investigation, ultimately disabling the invariant in question, I saw a new exception that my disk had run out of space (seems to be due to something like SERVER-38689 but for sharding tests). I think what's happening here is that the destructor of ShardingTestFixtureCommon is swallowing top-level exceptions since its throwing its own when the invariant fails. It would be great to just report the top-level exception, since it's the real problem.

            Assignee:
            backlog-server-catalog-and-routing [DO NOT USE] Backlog - Catalog and Routing
            Reporter:
            matt.broadstone@mongodb.com Matt Broadstone
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: