Authenticated Shard MapReduce error

24 views
Skip to first unread message

Macon, George

unread,
Oct 14, 2011, 10:17:21 AM10/14/11
to mongod...@googlegroups.com
I'm running a configuration with (currently) two shards, each of which is a replica set with two full nodes and an arbiter. When I attempt to run a MapReduce query against the sharded collection with authentication enabled, I get this error:

Thu Oct 13 13:57:47 uncaught exception: map reduce failed:{
"assertion" : "DBClientBase::findN: transport error: celes:27020 query: { mapreduce.shardedfinish: { mapreduce: \"coll\", map: function () {\n\n function pad(s, n) {\n s = s.toString();\n ..., reduce: function (key, values) {\n var total = {};\n for (var i = 0; i < v..., out: \"out_coll\", query: { last_seen: { $gte: new Date(1318032000000) } }, scope: { startdate: new Date(1318032000000) } }, shardedOutputCollection: \"tmp.mrs.coll_1318528663_6\", shards: { metadata1/celes:27020,sabin:27020: { result: \"tmp.mrs.coll_1318528663_6\", timeMillis: 3012, counts: { input: 37450, emit: 39018, reduce: 65, output: 3 }, ok: 1.0 }, metadata2/mog:27022,shadow:27022: { result: \"tmp.mrs.coll_1318528663_6\", timeMillis: 3025, counts: { input: 38452, emit: 40075, reduce: 66, output: 3 }, ok: 1.0 } }, shardCounts: { metadata1/celes:27020,sabin:27020: { input: 37450, emit: 39018, reduce: 65, output: 3 }, metadata2/mog:27022,shadow:27022: { input: 38452, emit: 40075, reduce: 66, output: 3 } }, counts: { emit: 79093, input: 75902, output: 6, reduce: 131 } }",
"assertionCode" : 10276,
"errmsg" : "db assertion failure",
"ok" : 0
}

On the other hand, with authentication disabled, the query works as expected. I've attached the log from celes, but I don't see anything interesting there except that tail notes that the file was truncated. It looks like mongod just crashes.

Has anyone else seen this behavior?

Does anyone have any suggestions for things to try?

celes.log

Antoine Girbal

unread,
Oct 14, 2011, 3:48:30 PM10/14/11
to mongodb-user
what is the mongo version?
you use the keyfile authentication?

This means that mongos is not able to call the final step of the
mapreduce on the destination mongod.
This is odd since it is able to call the earlier mapreduce on each
shard.
This may be bug in which case you should open server bug.


On Oct 14, 7:17 am, "Macon, George" <George.Ma...@gtri.gatech.edu>
wrote:
>  celes.log
> 6KViewDownload

Macon, George

unread,
Oct 18, 2011, 1:58:12 PM10/18/11
to mongod...@googlegroups.com

> -----Original Message-----
> From: mongod...@googlegroups.com [mailto:mongodb-
> us...@googlegroups.com] On Behalf Of Antoine Girbal
> Sent: Friday, October 14, 2011 3:49 PM
> To: mongodb-user
> Subject: [mongodb-user] Re: Authenticated Shard MapReduce error
>
> what is the mongo version?

We're using v2.0.0 (from the mongodb-10gen Ubuntu package)

> you use the keyfile authentication?

Yes.

Antoine Girbal

unread,
Oct 19, 2011, 1:39:01 PM10/19/11
to mongodb-user
I created a ticket for this bug, once confirmed it should be easy to
fix
https://jira.mongodb.org/browse/SERVER-4101

On Oct 18, 10:58 am, "Macon, George" <George.Ma...@gtri.gatech.edu>
wrote:
Reply all
Reply to author
Forward
0 new messages