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

Always refresh database cache on StaleDatabaseVersion

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Hide

      The following js test reproduces the bug.

      drop_database_stale_mongos.js

      Show
      The following js test reproduces the bug. drop_database_stale_mongos.js
    • 0

    Description

      If a mongos receives a StaleDatabaseVersion error, it refreshes its cache only if the shard attached a wantedVersion to the error. This prevent a stale mongos from discovering that a database have been dropped. In fact in this case the shards won't send any wanted version since the database doesn't exist anymore.

      None of our current tests cover this scenario, so we should also add a test for this.

      Attachments

        Activity

          People

            tommaso.tocci@mongodb.com Tommaso Tocci
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: