Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2076

Stop using admin database in specification tests

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Multiple
    • None
    • Needed

      Several of our automated spec tests (e.g. FLE, retryable reads) require use of the "admin" database for CRUD operations. 

      In practice, we generally don't recommend that applications store user data should in the admin database, and so by using the admin db in tests we end up not testing the behavior that actual applications would experience. In particular, in sharded clusters the admin database is actually located on the config servers, not one of the shards.  

      See SERVER-42842 for one example of where using the admin database inadvertently broke driver tests on sharded clusters.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: