[SERVER-1333] eval failing Created: 30/Jun/10  Updated: 30/Mar/12  Resolved: 17/Jul/10

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 1.5.3
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Nicole Jinn Assignee: Eliot Horowitz (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Mac OS X, PyMongo (python driver for MongoDB)


Operating System: OS X
Participants:

 Description   

>>> db.eval(map)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pymongo-1.7-py2.6-macosx-10.5-i386.egg/pymongo/database.py", line 566, in eval
result = self.command("$eval", code, args=args)
File "/Library/Frameworks/Python.framework/Versions/6.2/lib/python2.6/site-packages/pymongo-1.7-py2.6-macosx-10.5-i386.egg/pymongo/database.py", line 294, in command
(command, result["errmsg"]))
pymongo.errors.OperationFailure: command SON([('$eval', Code('map = function()

{emit( this.xfer_id_end, this.nl_intvl );}

', {})), ('args', ())]) failed: db assertion failure



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/Jul/10 ]

notice:

Wed Jun 30 11:17:27 JS Error: SyntaxError: syntax error nofile_a:0

looks like you've got a syntax error in your js code

Comment by Nicole Jinn [ 30/Jun/10 ]

Actually, I started all things new, so the following code is everything from the server (running 'mongodb')

Wed Jun 30 11:10:43 MongoDB starting : pid=722 port=27017 dbpath=/data/db/ 32-bit

    • NOTE: This is a development version (1.5.4-pre-) of MongoDB.
    • Not recommended for production.

Wed Jun 30 11:10:43 db version v1.5.4-pre-, pdfile version 4.5
Wed Jun 30 11:10:43 git version: 8f8a32469c5279d5c847033b1653fd723b7933be
Wed Jun 30 11:10:43 sys info: Darwin broadway.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40
Wed Jun 30 11:10:43 waiting for connections on port 27017
Wed Jun 30 11:10:43 web admin interface listening on port 28017
Wed Jun 30 11:11:08 connection accepted from 127.0.0.1:50820 #1
Wed Jun 30 11:11:08 end connection 127.0.0.1:50820
Wed Jun 30 11:11:08 connection accepted from 127.0.0.1:50821 #2
Wed Jun 30 11:17:27 JS Error: SyntaxError: syntax error nofile_a:0
Wed Jun 30 11:17:27 mr failed, removing collection
Wed Jun 30 11:17:27 CMD: drop application.tmp.mr.mapreduce_1277921847_1
Wed Jun 30 11:17:27 CMD: drop application.tmp.mr.mapreduce_1277921847_1_inc
Wed Jun 30 11:18:13 mr failed, removing collection
Wed Jun 30 11:18:13 CMD: drop application.tmp.mr.mapreduce_1277921893_2
Wed Jun 30 11:18:13 CMD: drop application.tmp.mr.mapreduce_1277921893_2_inc

Comment by Eliot Horowitz (Inactive) [ 30/Jun/10 ]

That's very weird..

Can you send 20 lines before and after the other one you pasted

Comment by Nicole Jinn [ 30/Jun/10 ]

No, there isn't a line with an assertion message.

Comment by Eliot Horowitz (Inactive) [ 30/Jun/10 ]

There should be a line with an assertion message.
Probably right above what you posted above.

Comment by Nicole Jinn [ 30/Jun/10 ]

The following is from the server (running 'mongod'):

Wed Jun 30 10:31:56 mr failed, removing collection
Wed Jun 30 10:31:56 CMD: drop application.tmp.mr.mapreduce_1277919116_1
Wed Jun 30 10:31:56 CMD: drop application.tmp.mr.mapreduce_1277919116_1_inc

What do you mean by the relevant server log portion?

Comment by Eliot Horowitz (Inactive) [ 30/Jun/10 ]

Can you attach the relevant server log portion?

Generated at Thu Feb 08 02:56:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.