[SERVER-4098] Sharding: Unable to Upsert when shard key is in an embedded doc Created: 19/Oct/11 Updated: 29/Feb/12 Resolved: 01/Nov/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | 2.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Vinaykr | Assignee: | Mathias Stearn |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | sharding, update | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 10.04 LTS (Lucid Lynx) |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Participants: | |||||||||
| Description |
|
I am using 2.0 release of mongodb in a setup with 4 shards. I created a test collection with following data: , "c" : 3 } , "c" : 3 } , "c" : 3 } , "c" : 3 } I sharded the collection with shard key: "_id" which worked fine. Even new inserts are working fine after sharding but "upserts" are not working. results in this error: ** EXCEPTION: can't upsert something without valid shard key I am using PHP 1.2.3 extension to connect to mongodb. Above error can be reproduced also when I use "_id.a" as a shard key rather than "_id". |
| Comments |
| Comment by Mathias Stearn [ 01/Nov/11 ] |
|
This is fallout from |
| Comment by Ronny Kwon [ 31/Oct/11 ] |
|
it seems that we have the same issue. We have 3 mongoS and mongo C with 2 replica (one primary and two slaves) ). |
| Comment by Vinaykr [ 28/Oct/11 ] |
|
any updates on this? Was anybody able to repro it? |