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

Undo any update on ScopedSetShardRole construction failure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0, 6.0.15, 7.0.8, 7.3.2
    • Affects Version/s: 6.0.0, 7.0.0, 7.3.0-rc0, 7.2.0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v7.3, v7.0, v6.0
    • CAR Team 2024-02-05
    • 134

      The ScopedSetShardRole aim is to set a shardVersion and dbVersion into the OperatingShardingState during the object lifespan.

      However, if the construction of the object fails, the destructor won't be called so we could end up having an inconsistent OperatingShardingState.

      This ticket aims to make sure that any change done on ScopedSetShardRole constructor will be reverted in case of an error.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            silvia.surroca@mongodb.com Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: