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

Abort movePrimary operation on BSONObjectTooLarge error

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • Sharding EMEA
    • Sharding EMEA 2023-03-20, Sharding EMEA 2023-04-03

      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.

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

              Created:
              Updated:
              Resolved: