[SERVER-30687] Group query halts server. Created: 16/Aug/17  Updated: 20/Sep/17  Resolved: 21/Aug/17

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

Type: Bug Priority: Major - P3
Reporter: Sergey Trofimov Assignee: Mark Agarunov
Resolution: Duplicate Votes: 0
Labels: RF
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File log.txt    
Issue Links:
Duplicate
duplicates SERVER-26389 Make javascript periodic interrupts d... Closed
Operating System: ALL
Participants:

 Description   

db version v3.2.16
git version: 056bf45128114e44c5358c7a8776fb582363e094
OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
allocator: tcmalloc
modules: none
build environment:
    distmod: ubuntu1404
    distarch: x86_64
    target_arch: x86_64

Relevant logs are in log.txt

At the time of incident I was running mongoexport on big collection (~10gb 15mln docs)
I suppose that mongoexport have slowed database to the level, when "group reduce init 2" exceeded its 2 second timeout.

invariant(_scope->exec("$arr = [];", "group reduce init 2", false, true, false /*assertOnError*/, 2 * 1000));

Maybe it would be better to fail single query instead of halting entire instance.



 Comments   
Comment by Sergey Trofimov [ 19/Aug/17 ]

Hi. I'm glad to hear that the problem is already fixed.
Thank you for your recommendation, we will follow it asap.
Please feel free to close the issue.

Comment by Mark Agarunov [ 18/Aug/17 ]

Hello sarg,

Thank you for the report. Looking over the log you've provided, I suspect this behavior is due to the same cause as SERVER-26389, which has been fixed in MongoDB version 3.4. My recommendation would be to upgrade to the latest version of MongoDB if possible.

Thanks,
Mark

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