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

Avoid invariant when converting write-blocked shard to replicaSet

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.0.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Sharding EMEA 2022-04-04

    Description

      When user write blocking is enabled on a shardsvr, the associated critical section document has blockNewUserShardedDDL set to true. If now we convert this shardsvr back to replSet (which is a use case we account for), the replSet is hitting this invariant on startup due to seeing blockNewUserShardedDDL=true. Since it is not actually a problem that blockNewUserShardedDDL is true on a replSet (it is just ignored), we should remove this invariant.

      Attachments

        Activity

          People

            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            jordi.serra-torrens@mongodb.com Jordi Serra Torrens
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: