[SERVER-61678] Make autoSplitVector return `continuation` flag Created: 21/Nov/21  Updated: 29/Oct/23  Resolved: 10/Mar/22

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 6.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Pierlauro Sciarelli Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-63267 Complete TODO listed in SERVER-61678 Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-03-21
Participants:

 Description   

The autoSplitVector function currently prevents returning more than 16MB of split keys. Such limit could be reached for very large collections or in case of "big" shard key fields.

Objective of this ticket is to modify the function and the command in order to return also a boolean flag indicating whether or not the index scan had been interrupted because the BSON max size was reached. In that case, the caller must perform additional autoSplitVector calls.



 Comments   
Comment by Githook User [ 10/Mar/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-61678 Avoid copying vectors of split points
Branch: master
https://github.com/mongodb/mongo/commit/659ed4c8593016dc7157c0117de18ce916ef8d42

Comment by Githook User [ 10/Mar/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-61678 Make autoSplitVector return `continuation` flag
Branch: master
https://github.com/mongodb/mongo/commit/fc2e35d5529b9336588316927e044a3bdef9e5b5

Generated at Thu Feb 08 05:53:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.