[SERVER-5001] mapreduce job asserts with inline output, but works with other output options Created: 17/Feb/12 Updated: 10/Dec/14 Resolved: 26/Jun/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | MapReduce |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Daniel Pasette (Inactive) | Assignee: | Ramon Fernandez Marina |
| Resolution: | Cannot Reproduce | Votes: | 3 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Operating System: | ALL | ||||
| Participants: | |||||
| Description |
|
Taken from FREE-7095:
|
| Comments |
| Comment by Ramon Fernandez Marina [ 26/Jun/14 ] | |||||||||||||||||||||||||||||||||||
|
Since we haven't heard back from anyone that can upload a reproducer I'm going to mark this ticket as resolved. If someone has a reproducer we can use, feel free to re-open the ticket so we can investigate further. Regards, | |||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 05/Jun/14 ] | |||||||||||||||||||||||||||||||||||
|
It appears that nobody at MongoDB has been able to reproduce this ticket yet. If someone could upload a sample document and a script that reproduces the problem that would be very useful in our efforts to get to the bottom of this. Thanks, | |||||||||||||||||||||||||||||||||||
| Comment by Tomas Henriquez [ 19/Jun/13 ] | |||||||||||||||||||||||||||||||||||
|
I was able to reproduce the error, when doing a map/reduce with a key value that has some values = null, it throws this problem. I fix it adding an if statement to the map function, something like this: if(!this.my_key) { return; }Now I am not sure if it should be treated as a bug or a programming error. If it's treated as a programming error, some kind of warning would be great. | |||||||||||||||||||||||||||||||||||
| Comment by Andrew Emil (Inactive) [ 30/May/13 ] | |||||||||||||||||||||||||||||||||||
|
Just as commentary, I have tried and failed to repro this. My attempt:
If anybody could upload something similar that breaks, in addition to showing a sample document you are running over and noting the version it breaks in, that would be very useful to me. | |||||||||||||||||||||||||||||||||||
| Comment by Timothy Kettering [ 21/May/13 ] | |||||||||||||||||||||||||||||||||||
|
I have run into this issue just today with mongo 2.4.3. like christian csar explained above = it was a coding error where i emitted a invalid key (that was null) and caused inline:1 to fail with the cpp error. changing the out option to a collection, worked fine. fixing the coding error and emitting a valid key, both inline and collection output worked fine. | |||||||||||||||||||||||||||||||||||
| Comment by Eliot Horowitz (Inactive) [ 23/Apr/13 ] | |||||||||||||||||||||||||||||||||||
|
Can anyone attach a script that does this? We seem to be having trouble reproducing. | |||||||||||||||||||||||||||||||||||
| Comment by Christian Csar [ 29/Aug/12 ] | |||||||||||||||||||||||||||||||||||
|
If you are still looking to reproduce this I'm seeing this behavior in 2.0.6. Due to a coding error in my map function I was emitting null as the key for all documents. When outputting to an inline collection I received the above assert; however, when simply using {replace : "outputCollection1"}instead of {inline: 1}led to the correct output in outputCollection1 (correct given my coding errors that is). { , Let me know if I can be of further assistance. | |||||||||||||||||||||||||||||||||||
| Comment by Antoine Girbal [ 30/Apr/12 ] | |||||||||||||||||||||||||||||||||||
|
no more comment on this? | |||||||||||||||||||||||||||||||||||
| Comment by Antoine Girbal [ 23/Mar/12 ] | |||||||||||||||||||||||||||||||||||
|
I cannot reproduce this with 2.0.2.. | |||||||||||||||||||||||||||||||||||
| Comment by Antoine Girbal [ 21/Feb/12 ] | |||||||||||||||||||||||||||||||||||
|
I would need more information in order to reproduce this. 1. does it happen every time you run with "inline"? thanks | |||||||||||||||||||||||||||||||||||
| Comment by Jonathan Tushman [ 20/Feb/12 ] | |||||||||||||||||||||||||||||||||||
|
I am having this same issue. Is there a work around until this is fixed? Thanks! |