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

Ensure we don't drop interesting data at the end of tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication

      In order to have data not conflict with other tests, tests need to drop all used collections at some point. This drop should happen at the beginning of the test and not the end of the test (unless specifically testing drop) to ensure that we can check the tested data for consistency. SERVER-71139 is an example where the test coverage was largely lost in our passthroughs due to dropping the interesting data after the fact. We should see if we can ensure the preferred pattern is enforced and convert tests that use the wrong pattern as applicable. Alternatively we should explore overrides that automatically ensure the correct pattern.

      A counterpoint to investing time here is that our mutational fuzzers over time run all of the jscore commands in different orders and don't drop the data after the fact.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: