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

Abort movePrimary operation on BSONObjectTooLarge error

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • Sharding EMEA
    • Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03

    Description

      The cloning phase of the movePrimary operation writes on the coordinator document the list of collections belonging to the database to be cloned. This information is serialized to a BSON object (i.e., collectionsToClone filed), and its size could potentially exceed the maximum limit. This would trigger a BSONObjectTooLarge error, that is considered retryable by the resilient cloning procedure of the movePrimary (see SERVER-74185).

      The goal of this ticket is to handle this error by causing the operation to fail.

      Attachments

        Activity

          People

            antonio.fuschetto@mongodb.com Antonio Fuschetto
            antonio.fuschetto@mongodb.com Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: