[SERVER-29095] mapReduce fails [Error: BSONElement: bad type] when jsMode set to "true" Created: 05/May/17 Updated: 12/Jul/17 Resolved: 09/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, MapReduce |
| Affects Version/s: | 3.4.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sander Spilleman | Assignee: | Mark Agarunov |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | ALL |
| Participants: |
| Description |
|
When running a mapReduce job, its fails with MongoError: Error: Error: BSONElement: bad type 105 @:1:236, full stacktrace below.
OS: macOS 10.12.5 I need to get this fixed.... The performance penalty of switching to jsMode false is huge... Thanks!
|
| Comments |
| Comment by Kelsey Schubert [ 09/Jun/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi sspilleman, We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket. Regards, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark Agarunov [ 19/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello sspilleman, Thank you for providing these files. Looking over this, I suspect this may be due to data corruption. Please try to repair the dataset to see if this fixes the issue. If it does not, please provide the complete log file from mongod when this issue is present. Thanks, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sander Spilleman [ 07/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
FYI, I switched back to jsMode: false..... This is unworkable | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sander Spilleman [ 06/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
BTW. Just tried. It also fails on v3.5.6. Just downloaded the source and built a Fedora version..... Stacktrace below:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sander Spilleman [ 06/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
log file also uploaded..... | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sander Spilleman [ 06/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I've uploaded the --dpPath directory... In this dataset the issue did NOT occur however. There may be reasons why however: 1) First I tried a couple of times with running "mongodump --archive=/tmp/nzbindex4.gz --gzip --db nzbindex" before each mapReduce, this may the reason why it didnt Bot may be (somehow) valid reasons why the database might be in a different state and the issue doesn't occur then Sander | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Sander Spilleman [ 06/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Let me first send you the mapreduce code. Unfortunately I've already deleted the dataset.... Modifying my code to see if I'm inserting strings with strange values like \0 characters etc.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Mark Agarunov [ 05/May/17 ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello sspilleman, Thank you for the report. We are looking into the behavior you've described, but I have a couple of questions/requests to clarify the issue:
Thanks, |