[SERVER-8818] Upsert of a document with shard key results in failure as opposed to a succesful insert Created: 01/Mar/13 Updated: 10/Dec/14 Resolved: 01/Apr/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.4.0-rc1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sridhar Nanjundeswaran | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
2.4.0-rc1 2008R2plus build on Windows 7 |
||
| Attachments: |
|
| Operating System: | ALL |
| Steps To Reproduce: | Run mongo shardkeyUpsert.js |
| Participants: |
| Description |
|
Expect the attach js to result in an insert but it errors out as |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 01/Apr/13 ] |
|
this is not a true upsert $set on shard keys is disallowed entirely, which I believe ie clearer and simpler. |