Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4101

Authenticated Shard MapReduce error

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.0
    • Security
    • None
    • ALL

    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?

      Attachments

        Activity

          People

            kristina Kristina Chodorow (Inactive)
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: