[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: |
|
||||||||||||||||
| 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: (cherry picked from commit 305db93cc0b8d167534b761f6920590c9ffa266f) |
| Comment by Githook User [ 11/Apr/17 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: (cherry picked from commit 85f26f1d66bbd43dc47b8f1c8b8f25bddf00d733) Conflicts: |
| Comment by Githook User [ 11/Apr/17 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: |
| Comment by Githook User [ 09/Apr/17 ] |
|
Author: {u'username': u'GeertBosch', u'name': u'Geert Bosch', u'email': u'geert@mongodb.com'}Message: |