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

Missed incrementing _rsmIncrement in ShardRegistry for config shard replica set update

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.0-rc16
    • Affects Version/s: 8.0.0-rc15
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • v8.0
    • CAR Team 2024-08-05
    • 0

      When updating replica set hosts in the shard registry, we only increment the counter of _rsmIncrement when the shard is not a config shard. This can prevent the ShardRegistry from refreshing to have the latest shards correctly.

      This might have only become an issue after we introduced config shard in 8.0. Before that, the ShardRegistry was always constructed with a config server connection string, so it was not necessary to handle the case of config server.

            Assignee:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Reporter:
            yuhong.zhang@mongodb.com Yuhong Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: