[SERVER-15888] Implicit DB creations on insert and update code paths happen under DB IX lock Created: 30/Oct/14  Updated: 19/Nov/14  Resolved: 04/Nov/14

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 2.7.8
Fix Version/s: 2.8.0-rc0

Type: Bug Priority: Critical - P2
Reporter: Kaloian Manassiev Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-15880 parallel test suite timeout due to de... Closed
Related
related to SERVER-15917 Invariant failure when running explai... Closed
Tested
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

The isWriteLocked assertion doesn't check the state of the DB lock and that's why we never assert.



 Comments   
Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15888: fix profiling inf. loop when can't profile
Branch: master
https://github.com/mongodb/mongo/commit/a69c4001dd891bf5d9b2862455d743d5d438cc96

Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15888: add invariant check in kv engine that have correct lock for collection create/drop
Branch: master
https://github.com/mongodb/mongo/commit/998c4fd5faad88eea7cd24a81945c2d8d91ad5ae

Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15888: WriteContext will switch from MODE_IX to MODE_X if collection doesn't exist
Branch: master
https://github.com/mongodb/mongo/commit/9b96c72ec4b8adb65480f33f752fd43b333414f0

Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15888: fix lock for collection creation in profiling
Branch: master
https://github.com/mongodb/mongo/commit/1537472fc8ce3068671f826fde6ca6c934165d15

Comment by Githook User [ 03/Nov/14 ]

Author:

{u'username': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}

Message: SERVER-15888: fix locking on collection mods in dbtests
Branch: master
https://github.com/mongodb/mongo/commit/0e0441723f325469f7ed582a9ba90cb9b3a002b1

Comment by Githook User [ 02/Nov/14 ]

Author:

{u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}

Message: SERVER-15888: Ensure MODE_X on implicit DB creation

Also adds new API to DBLock to allow relocking in different mode.
Branch: master
https://github.com/mongodb/mongo/commit/0f3ef4550c44a21aa7658586789c97505adf51a6

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