[SERVER-4502] No chunk splits when using findAndModify() to upsert Created: 15/Dec/11 Updated: 11/Jul/16 Resolved: 17/Apr/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 1.8.4, 2.0.1, 2.0.2, 2.0.3 |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tyler Brock | Assignee: | Brandon Diamond |
| Resolution: | Done | Votes: | 4 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
Doing upserts on a sharded collection via a findAndModify will not initiate chunk splits (and subsequent balancing). I've attached a javascript file that shows the correct behavior for a regular upsert and reproduces the bug behavior for a findAndModify upsert. Before running, please start a sharded cluster using the mongo snippet with chunksize=1 or increase n. |
| Comments |
| Comment by auto [ 17/Apr/12 ] |
|
Author: {u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}Message: |