Tests can't assume that a database has been dropped when the balancer is active

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • CAR Team 2026-04-13
    • 200
    • 🟥 DDL
    • None
    • None
    • None
    • None
    • None
    • None

      After SERVER-115710, the listDatabases command on a sharded cluster started returning databases present in config.databases even if they no longer exist on any shard.

      Since moveCollection can recreate a database entry in config.databases when it runs concurrently with dropDatabase, we can't assume the database won't exist when the balancer issues background moveCollection commands. Therefore, we need to update the test drop_database.js to stop making that assumption.

            Assignee:
            Silvia Surroca
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: