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

movePrimary's clone phase failure may be retried indefinitely if database contains sharded views

    • Sharding EMEA
    • Fully Compatible
    • ALL
    • v7.2, v7.1, v7.0
    • Sharding EMEA 2023-10-16, Sharding EMEA 2023-10-30, CAR Team 2023-11-13, CAR Team 2023-11-27
    • 3

      When movePrimary fails during the clone phase due to any reason, the operation will be aborted and cleaned up on the next iteration.

      During the movePrimary cleanup, the donor sends a drop for every collection that was expected to be cloned to the recipient shard. One of these collections could be <dbName>.system.views, which can't be dropped if there is any view bucket collection on the node. Therefore, if there is any sharded view collection on the recipient shard while <dbName>.system.views collection is being dropped, the movePrimary cleanup process will fail and the movePrimary will be retried forever.

            silvia.surroca@mongodb.com Silvia Surroca
            silvia.surroca@mongodb.com Silvia Surroca
            0 Vote for this issue
            7 Start watching this issue