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

Transition resharding coordinator to kDone without bumping shard versions

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • Sharding 2020-12-14
    • 1

    Description

      When the ReshardingCoordinatorService tries to persist its transition to kDone, it calls it tries to do so via resharding::persistStateTransitionAndCatalogUpdatesThenBumpShardVersions. However, at this point, we do not want to bump the shard version of the collection (see notifyForStateTransition) and will hit an invariant.

      Our current testing does not catch this because it tests the transition to kDone by calling removeCoordinatorDocAndReshardingFields, which is a function only called by the test that no longer accurately mirrors the coordinator's code flow since SERVER-51291

      Attachments

        Activity

          People

            blake.oler@mongodb.com Blake Oler
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: