[SERVER-28645] Fail commands that require too many locks instead of crashing Created: 06/Apr/17  Updated: 15/Aug/17  Resolved: 09/Apr/17

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 3.4.4, 3.5.6

Type: Bug Priority: Major - P3
Reporter: Geert Bosch Assignee: Geert Bosch
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-28646 Don't report ops as passed if logOps ... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.4, v3.2
Steps To Reproduce:

Issue an applyOps command with inserts into more than 10 capped collections.

Sprint: Storage 2017-04-17
Participants:

 Description   

If a single atomic applyOps command inserts into more than 10 capped collections, or causes more than 10 collections to have a multi-key index, that transaction may require more locks than a single operation is allowed to hold. In such situations, do not crash, but instead fail the operation and return an error.



 Comments   
Comment by Githook User [ 11/Apr/17 ]

Author:

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

Message: SERVER-28645 Add unit test and integration test tweaks

(cherry picked from commit 305db93cc0b8d167534b761f6920590c9ffa266f)
Branch: v3.4
https://github.com/mongodb/mongo/commit/fba4777564145f7f673a23659d06c9eb75fdb54e

Comment by Githook User [ 11/Apr/17 ]

Author:

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

Message: SERVER-28645 Fail operations requiring too many locks, don't crash

(cherry picked from commit 85f26f1d66bbd43dc47b8f1c8b8f25bddf00d733)

Conflicts:
src/mongo/base/error_codes.err
Branch: v3.4
https://github.com/mongodb/mongo/commit/e0d69be0ed9628034b70aacdc24fb843e640a10d

Comment by Githook User [ 11/Apr/17 ]

Author:

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

Message: SERVER-28645 Add unit test and integration test tweaks
Branch: master
https://github.com/mongodb/mongo/commit/305db93cc0b8d167534b761f6920590c9ffa266f

Comment by Githook User [ 09/Apr/17 ]

Author:

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

Message: SERVER-28645 Fail operations requiring too many locks, don't crash
Branch: master
https://github.com/mongodb/mongo/commit/85f26f1d66bbd43dc47b8f1c8b8f25bddf00d733

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