Always refresh database cache on StaleDatabaseVersion

XMLWordPrintableJSON

    • 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

              Assignee:
              Tommaso Tocci
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: