[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: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Backport Requested: |
v6.1, v6.0
|
||||
| Sprint: | Sharding EMEA 2022-10-17 | ||||
| Participants: | |||||
| Case: | (copied to CRM) | ||||
| 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: Non trivial backport of |
| Comment by Githook User [ 13/Oct/22 ] |
|
Author: {'name': 'Silvia Surroca', 'email': 'silvia.surroca@mongodb.com', 'username': 'silviasuhu'}Message: |