[SERVER-19435] mapreduce cause Secondary assert Created: 16/Jul/15  Updated: 16/Jul/15  Resolved: 16/Jul/15

Status: Closed
Project: Core Server
Component/s: MapReduce, Replication
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: YANG Chenghu Assignee: Sam Kleinman (Inactive)
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-19019 Fatal assertion when failing to creat... Closed
Operating System: ALL
Steps To Reproduce:

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

Participants:

 Description   

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



 Comments   
Comment by Sam Kleinman (Inactive) [ 16/Jul/15 ]

Thanks for this report! It looks like we're already tracking this issue in the SERVER-19019 issue. I'm going to go ahead and close this ticket now, but if this doesn't seem correct to you we can adjust that ticket or reopen this one as needed.

Regards,
sam

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