[SERVER-11173] Difference between querying to mongos and mongod Created: 14/Oct/13 Updated: 10/Dec/14 Resolved: 14/Oct/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.4.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Shay Asher | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
RHEL 5.8 |
||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Steps To Reproduce: | > c = db.test.find( {title: "shay"}, {f:0}).sort( {"f":1}) { "_id" : ObjectId("525be8c1513f4b195eaa8d00"), "title" : "shay" }mongos> c = db.test.find( {title: "shay"}, {f:0}).sort( {"f":1}) |
||||
| Participants: | |||||
| Description |
|
We've encountered an error migrating to sharded environment. , {f:0}).sort( {"f":1}) { "_id" : ObjectId("525be8c1513f4b195eaa8d00"), "title" : "shay" }mongos> c = db.test.find( {title: "shay"}, {f:0}).sort( {"f":1}) |
| Comments |
| Comment by Shay Asher [ 14/Oct/13 ] |
|
Thanks. |
| Comment by Eliot Horowitz (Inactive) [ 14/Oct/13 ] |
|
Yes, this should be handled automatically, such that the query works in both (not neither. There is an older ticket |