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

Stop using admin database in specification tests

    XMLWordPrintableJSON

Details

    • Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • Multiple
    • None
    • Needed

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: