[SERVER-6786] Can't get lock to commit journal in local db during index build Created: 17/Aug/12  Updated: 06/Dec/22  Resolved: 14/Sep/18

Status: Closed
Project: Core Server
Component/s: Index Maintenance, MMAPv1
Affects Version/s: 2.2.0-rc0
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Scott Hernandez (Inactive) Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-14751 Assertion failure a <= 512*1024*1024 ... Closed
Assigned Teams:
Storage Execution
Operating System: ALL
Participants:

 Description   

Getting a continuous stream of these when trying to build an index on a collection in the local db.

Thu Aug 16 19:55:28 [conn1] ERROR: can't commitNow from commitIfNeeded, as we are in local db lock
0x10057e6cb 0x10045169e 0x1004517b6 0x100085572 0x10050f5f0 0x100508038 0x10050d6ed 0x10023f01e 0x10024d58f 0x10024f0a2 0x100062248 0x100066ae1 0x10006dc11 0x100017f7e 0x10048258c 0x100551113 0x7fff817fdfd6 0x7fff817fde89 
 0   mongod                              0x000000010057e6cb _ZN5mongo15printStackTraceERSo + 43
 1   mongod                              0x000000010045169e _ZN5mongo3dur11DurableImpl16_aCommitIsNeededEv + 270
 2   mongod                              0x00000001004517b6 _ZN5mongo3dur11DurableImpl14commitIfNeededEb + 54
 3   mongod                              0x0000000100085572 _ZN5mongo12BtreeBuilderINS_12BtreeData_V1EE6addKeyERNS_7BSONObjENS_7DiskLocE + 802
 4   mongod                              0x000000010050f5f0 _ZN5mongo24buildBottomUpPhases2And3INS_12BtreeData_V1EEEvbRNS_12IndexDetailsERNS_21BSONObjExternalSorterEbRSt3setINS_7DiskLocESt4lessIS7_ESaIS7_EEPNS_5CurOpEPNS_12SortPhaseOneERNS_19ProgressMeterHolderERNS_5TimerE + 336
 5   mongod                              0x0000000100508038 _ZN5mongo14fastBuildIndexEPKcPNS_16NamespaceDetailsERNS_12IndexDetailsEi + 2904
 6   mongod                              0x000000010050d6ed _ZN5mongo12buildAnIndexESsPNS_16NamespaceDetailsERNS_12IndexDetailsEib + 525
 7   mongod                              0x000000010023f01e _ZN5mongo16insert_makeIndexEPNS_16NamespaceDetailsERKSsRKNS_7DiskLocE + 606
 8   mongod                              0x000000010024d58f _ZN5mongo11DataFileMgr6insertEPKcPKvibbPb + 1471
 9   mongod                              0x000000010024f0a2 _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 66
 10  mongod                              0x0000000100062248 _ZN5mongo14checkAndInsertEPKcRNS_7BSONObjE + 184
 11  mongod                              0x0000000100066ae1 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 1841
 12  mongod                              0x000000010006dc11 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE + 4705
 13  mongod                              0x0000000100017f7e _ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE + 270
 14  mongod                              0x000000010048258c _ZN5mongo3pms9threadRunEPNS_13MessagingPortE + 1084
 15  mongod                              0x0000000100551113 thread_proxy + 163
 16  libSystem.B.dylib                   0x00007fff817fdfd6 _pthread_start + 331
 17  libSystem.B.dylib                   0x00007fff817fde89 thread_start + 13



 Comments   
Comment by Thomas Rueckstiess [ 13/Aug/14 ]

Looks like this is still an issue in 2.6.0, see linked ticket.

Comment by Andy Schwerin [ 08/Mar/13 ]

scotthernandez, does this repro on 2.4.0-rc0, or on the latest 2.2.x?

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