[SERVER-2861] MapReduce returns undefined _id Created: 29/Mar/11 Updated: 12/Jul/16 Resolved: 30/Mar/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | MapReduce |
| Affects Version/s: | 1.8.0 |
| Fix Version/s: | 1.8.2, 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kristina Chodorow (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Operating System: | ALL | ||||||||||||
| Participants: | |||||||||||||
| Description |
|
>> db.test.insert( {x : 0}) >> var r = function(k,v) { total = 0; for(i in v) { total+= v[i]; } return total; } ) , In the result, _id is undefined (it looks like null in the shell, but if you do a mongodump you can see it's type 6). ---------- This causes problems with replication (i.e., stops it completely). |
| Comments |
| Comment by auto [ 28/Apr/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix m/r handling of undefined |
| Comment by auto [ 30/Mar/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: fix m/r handling of undefined |