[SERVER-4101] Authenticated Shard MapReduce error Created: 19/Oct/11  Updated: 30/Mar/12  Resolved: 09/Nov/11

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

Type: Bug Priority: Major - P3
Reporter: Antoine Girbal Assignee: Kristina Chodorow (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

from thread:
http://groups.google.com/group/mongodb-user/browse_thread/thread/8da68880d10f4214

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?



 Comments   
Comment by Antoine Girbal [ 09/Nov/11 ]

dup of SERVER-4114

Comment by Kristina Chodorow (Inactive) [ 26/Oct/11 ]

Can you send the log from before/during the crash?

Generated at Thu Feb 08 03:04:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.