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

mapreduce cause Secondary assert

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: MapReduce, Replication
    • Labels:
      None
    • ALL
    • Hide

      MapReduce System.profile

      var mapFunction = function() {
          emit(this.ns, 1)
      };
      
      var reduceFunction = function(ns, count) {
          return Array.sum(count);
      };
      
      db.system.profile.mapReduce(mapFunction, reduceFunction, { out : "profileout" })
      

      Secondary Log:

      2015-07-16T16:19:58.945+0800 D QUERY    [rsSync] Only one plan is available; it will be run but will not be cached. query: {} sort: {} projection: {} skip: 0 limit: 0, planSummary: COLLSCAN
      2015-07-16T16:19:58.945+0800 D STORAGE  [rsSync] WT begin_transaction
      2015-07-16T16:19:58.945+0800 D WRITE    [rsSync] update validate options --  updatedFields: Fields:[ ts,] immutableAndSingleValueFields.size:0 fromRepl: 0 validate:1
      2015-07-16T16:19:58.945+0800 D STORAGE  [rsSync] WT commit_transaction
      2015-07-16T16:19:58.945+0800 D WRITE    [rsSync] UpdateResult --  upserted: {} modifiers: 1 existing: 1 numDocsModified: 1 numMatched: 1 newObj: {}
      2015-07-16T16:19:58.945+0800 D REPL     [rsSync] replication batch size is 1
      2015-07-16T16:19:58.946+0800 D REPL     [repl writer worker 15] applying op: { ts: Timestamp 1437033338000|2, h: 4140063466960652116, v: 2, op: "i", ns: "CinemaManager.tmp.mr.system.profile_0", o: { _id: "CinemaManager.$cmd", value: 4.0 } }
      2015-07-16T16:19:58.946+0800 D -        [repl writer worker 15] User Assertion: 10156:cannot update system collection: CinemaManager.tmp.mr.system.profile_0 q: { _id: "CinemaManager.$cmd" } u: { _id: "CinemaManager.$cmd", value: 4.0 }
      2015-07-16T16:19:58.946+0800 E REPL     [repl writer worker 15] writer worker caught exception:  :: caused by :: 10156 cannot update system collection: CinemaManager.tmp.mr.system.profile_0 q: { _id: "CinemaManager.$cmd" } u: { _id: "CinemaManager.$cmd", value: 4.0 } on: { ts: Timestamp 1437033338000|2, h: 4140063466960652116, v: 2, op: "i", ns: "CinemaManager.tmp.mr.system.profile_0", o: { _id: "CinemaManager.$cmd", value: 4.0 } }
      2015-07-16T16:19:58.946+0800 I -        [repl writer worker 15] Fatal Assertion 16360
      2015-07-16T16:19:58.946+0800 I -        [repl writer worker 15]
      
      ***aborting after fassert() failure
      
      Show
      MapReduce System.profile var mapFunction = function() { emit(this.ns, 1) }; var reduceFunction = function(ns, count) { return Array.sum(count); }; db.system.profile.mapReduce(mapFunction, reduceFunction, { out : "profileout" }) Secondary Log: 2015-07-16T16:19:58.945+0800 D QUERY [rsSync] Only one plan is available; it will be run but will not be cached. query: {} sort: {} projection: {} skip: 0 limit: 0, planSummary: COLLSCAN 2015-07-16T16:19:58.945+0800 D STORAGE [rsSync] WT begin_transaction 2015-07-16T16:19:58.945+0800 D WRITE [rsSync] update validate options -- updatedFields: Fields:[ ts,] immutableAndSingleValueFields.size:0 fromRepl: 0 validate:1 2015-07-16T16:19:58.945+0800 D STORAGE [rsSync] WT commit_transaction 2015-07-16T16:19:58.945+0800 D WRITE [rsSync] UpdateResult -- upserted: {} modifiers: 1 existing: 1 numDocsModified: 1 numMatched: 1 newObj: {} 2015-07-16T16:19:58.945+0800 D REPL [rsSync] replication batch size is 1 2015-07-16T16:19:58.946+0800 D REPL [repl writer worker 15] applying op: { ts: Timestamp 1437033338000|2, h: 4140063466960652116, v: 2, op: "i" , ns: "CinemaManager.tmp.mr.system.profile_0" , o: { _id: "CinemaManager.$cmd" , value: 4.0 } } 2015-07-16T16:19:58.946+0800 D - [repl writer worker 15] User Assertion: 10156:cannot update system collection: CinemaManager.tmp.mr.system.profile_0 q: { _id: "CinemaManager.$cmd" } u: { _id: "CinemaManager.$cmd" , value: 4.0 } 2015-07-16T16:19:58.946+0800 E REPL [repl writer worker 15] writer worker caught exception: :: caused by :: 10156 cannot update system collection: CinemaManager.tmp.mr.system.profile_0 q: { _id: "CinemaManager.$cmd" } u: { _id: "CinemaManager.$cmd" , value: 4.0 } on: { ts: Timestamp 1437033338000|2, h: 4140063466960652116, v: 2, op: "i" , ns: "CinemaManager.tmp.mr.system.profile_0" , o: { _id: "CinemaManager.$cmd" , value: 4.0 } } 2015-07-16T16:19:58.946+0800 I - [repl writer worker 15] Fatal Assertion 16360 2015-07-16T16:19:58.946+0800 I - [repl writer worker 15] ***aborting after fassert() failure

      MapReduce System.profile collection, Secodary assert fail and can't start ever

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            ychtiger YANG Chenghu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: