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

Undo any update on ScopedSetShardRole construction failure

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • 6.0.0, 7.0.0, 7.3.0-rc0
    • None
    • None
    • Catalog and Routing
    • Fully Compatible
    • v7.3
    • CAR Team 2024-02-05
    • 134

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: