[SERVER-48104]  The op '$ne'  in map reduce query clause cause  mongod exit Created: 09/May/20  Updated: 07/Jul/20  Resolved: 07/Jul/20

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

Type: Bug Priority: Major - P3
Reporter: Gaecomcn Com Assignee: Dmitry Agranat
Resolution: Incomplete Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

 

mongo version: mongodb-community MongoDB shell version v4.2.2

example record:

 

{ "_id" : ObjectId("5ea938564e4df711684b6822"), "project_id" : 7733525 "code" : 938, "title" : "test title", "creator" : { "id" : 32, "login" : "23", "avatar_url" : "https://rescdnxx.com", "url" : "https://mlt.xxx.net/api/user/key/xxx", "html_url" : "https://mlt.coding.net/u/xxx", "name" : "xx", "name_pinyin" : "zrj|zhrj|zhanrongjun" }, "status" : "未开始", "assignee" : { "id" : 1141842, "login" : "ddd", "name" : "xx", "name_pinyin" : "zrj|zhrj|xx" }, "priority" : 1, "description" : "desc", "due_date" : 1583039999, "created_at" : NumberLong("1586526674427"), "updated_at" : NumberLong("1586526674427"), "action" : "created", "repo_id" : 7727525, "creator_id" : 1141842, "creator_name" : "xxx", "assignee_id" : 1141842, "assignee_name" : "xxx", "sender_id" : 1141842, "sender_name" : "xxx", "name" : "ml-ec-dev", "op_status" : "created" }

 

To run command on mongo console or  use php code to run mapReduce

the following code will make mongod exit.  The op '$ne'  in query clause cause  mongod exit. The exit message is like "DBClientConnection failed to receive message from 127.0.0.1:27017 - HostUnreachable: Connection close"

 

db.runCommand( {
 mapReduce: "task",
 query:{'op_status':{'$ne':['created']}},
 map: function()
{ emit(1, this); }
,
reduce: function(one, items)
{ prev={'_reduce___':1}
return prev
 },
out: { inline: 1 }
 } )



 Comments   
Comment by Dmitry Agranat [ 07/Jul/20 ]

Hi gaecomcn@gmail.com,

We haven’t heard back from you for some time, so I’m going to mark this ticket as resolved. If this is still an issue for you, please provide additional information and we will reopen the ticket.

Regards,
Dima

Comment by Carl Champain (Inactive) [ 12/May/20 ]

Hi gaecomcn@gmail.com,

Thank you for the report.
Can you please provide the mongod.log file covering the crash?

Kind regards,
Carl
 

Comment by Gaecomcn Com [ 09/May/20 ]

macbook pro 2019 

os version: macOs catalina 10.15.4 (19E287)

Generated at Thu Feb 08 05:16:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.