Undo any update on ScopedSetShardRole construction failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Silvia Surroca
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: