[SERVER-36893] autosplit_heuristics.js should insert documents one by one and wait for chunk splitting Created: 27/Aug/18  Updated: 29/Oct/23  Resolved: 28/Aug/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.1.3

Type: Bug Priority: Major - P3
Reporter: Matthew Saltz (Inactive) Assignee: Matthew Saltz (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 12

 Description   

autosplit_heuristics.js uses bulk insert and then checks the count of chunks. Since autosplitting happens asynchronously on the shard, this could lead to non-deterministic chunk counts. Instead we will wait for chunk splitting to finish after each insert.



 Comments   
Comment by Githook User [ 28/Aug/18 ]

Author:

{'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}

Message: SERVER-36893 Change autosplit_heuristics.js to wait for chunk splitting after each insert
Branch: master
https://github.com/mongodb/mongo/commit/3ef3a0de876f16e8fcc6a49f8e0056849b10a24e

Generated at Thu Feb 08 04:44:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.