In ContinuousAddRemoveShard test hook handle DatabaseDropPending error

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Query Execution
    • Fully Compatible
    • 0
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In a test hook, we must correctly anticipate any concurrent operations.

      One possible operation is dropDatabase().

      In case a test runs dropDatabase and the test hook concurrently tries to move a collection, it will fail with DatabaseDropPending.

      Now this errors can lead to test failures. We should ignore them in the test hook.

            Assignee:
            Ivan Fefer
            Reporter:
            Ivan Fefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: