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

Relax OperationShardingState::initializeClientRoutingVersion _shardVersionsChecked invariant

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Query Execution 2021-04-05
    • 0

      With the introduction of SERVER-49228 it is possible that we will attempt to register collection sharding state for a views underlying collection more than once, in the case that after the first registration we find that we our config state is uninitialized and need to reload / retry the command. This will trigger an invariant in OperationShardingState::initializeClientRoutingVersion that confirms that the given namespace does not already exist in _shardVersionsChecked.

      To address we should relax this invariant to only trigger when the registered collection is also registered as sharded.

            Assignee:
            yoonsoo.kim@mongodb.com Yoon Soo Kim
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: