[SERVER-9690] SplitVector fails to find the mid-point of a chunk Created: 15/May/13  Updated: 10/Dec/14  Resolved: 05/Jun/13

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.2.4, 2.4.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Weibull Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-9365 mongod always split at 250000 position Closed
Operating System: ALL
Participants:

 Description   

SplitVector fails to find the mid-point of a chunk if it is forced and there are more than 250000 records in the chunk.

To test this run the following from the mongo shell:

> use test
switched to db test
> for (i=0; i < 500000; i++) {db.col.insert(

{"i":i}

);}
> db.col.ensureIndex(

{"i":1}

)

> db.adminCommand({"splitVector": "test.col", "keyPattern":

{i:1}

, "min":

{i:0}

, "max":

{i: 250001}

, force: true})

it will output something like this:

{"timeMillis" : 81, "splitKeys": [

{"i": 250000}

], "ok": 1}

so the split point it suggests is the record just before the last one, which is pretty far from the middle.



 Comments   
Comment by David Weibull [ 15/May/13 ]

This is related to https://jira.mongodb.org/browse/SERVER-9498

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