[SERVER-70237] Chunks merge commit must not create a BSON object too large Created: 05/Oct/22  Updated: 29/Oct/23  Resolved: 13/Oct/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.2.22, 4.4.18, 5.0.14, 6.0.3, 6.1.0-rc4
Fix Version/s: 6.0.4, 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Silvia Surroca
Resolution: Fixed Votes: 0
Labels: collection-defrag-bugs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.1, v6.0
Sprint: Sharding EMEA 2022-10-17
Participants:
Case:

 Description   

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.



 Comments   
Comment by Githook User [ 07/Dec/22 ]

Author:

{'name': 'Tommaso Tocci', 'email': 'tommaso.tocci@mongodb.com', 'username': 'toto-dev'}

Message: SERVER-70237 Chunks merge commit must not create a BSON object too large

Non trivial backport of SERVER-70237 and part of SERVER-65838
Branch: v6.0
https://github.com/mongodb/mongo/commit/1372bfc84c1913fa4c6c2d882ac8bbc7763af123

Comment by Githook User [ 13/Oct/22 ]

Author:

{'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}

Message: SERVER-70237 Chunks merge commit must not create a BSON object too large
Branch: master
https://github.com/mongodb/mongo/commit/ac9c95d0f90fb882aee1043e9aae6ff2491a7fe4

Generated at Thu Feb 08 06:15:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.