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

Chunks merge commit must not create a BSON object too large

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.4, 6.2.0-rc0
    • Affects Version/s: 4.2.22, 4.4.18, 5.0.14, 6.0.3, 6.1.0-rc4
    • Component/s: None
    • Fully Compatible
    • ALL
    • v6.1, v6.0
    • Sharding EMEA 2022-10-17

      When multiple contiguous chunks are being merged, the commit on the config server is performed via a transaction that - currently - contains a delete statement for each single chunk involved in the operation.

      In case plenty of chunks are merged, it may happen to append too many delete statements leading to the creation a large BSON object exceeding the maximum allowed size of 16MB.

      When that happens, the merge fails.

            Assignee:
            silvia.surroca@mongodb.com Silvia Surroca
            Reporter:
            pierlauro.sciarelli@mongodb.com Pierlauro Sciarelli
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: