[SERVER-5959] Mongod crashes with access denied if you spawn multiple shells inserting in quick succession Created: 29/May/12  Updated: 11/Jul/16  Resolved: 31/May/12

Status: Closed
Project: Core Server
Component/s: Stability
Affects Version/s: 2.1.1
Fix Version/s: 2.1.2

Type: Bug Priority: Critical - P2
Reporter: Sridhar Nanjundeswaran Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MongoDB 2.1.1 2008+ version on Windows 2008R2 Std Edition


Attachments: File Test.7z     Text File mongod.log    
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

Created a simple script that drops a database and inserts a 1K document in a tight loop. I launch 20 of those in quick succession and this causes the database to crash. I can repro with 2.1.1 and the latest 5/28 build but not with 2.0.5.
Attached log file from the crash. To run the test, run load.bat from the zip dir.



 Comments   
Comment by auto [ 31/May/12 ]

Author:

{u'login': u'tadmarshall', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-5959 don't use rand() to create unique names

Use a mutex to protect a monotonically increasing counter,
and use the counter to generate a portion of the directory
name used for external sort. This prevents name collisions
between threads running external sort simultaneously.
Branch: master
https://github.com/mongodb/mongo/commit/b26bb992b458fa45af01d3f51e4ce8725f96ee70

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