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

Wait for db critical section on StaleDbVersion

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • ALL
    • Sharding EMEA 2022-03-21
    • 155

      In SERVER-63327 we swapped the order of checks performed in DatabaseShardingState::checkDbVersion. If we don't currently know the version for a db we now throw StaleDbVersion ignoring the db critical section, even if a critical section is actually in place for that db.

      This means that we will possibly perform a refresh and retry the command locally on the shard even if the db critical section is taken.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: