[SERVER-47605] Single-phase index builds should only check constraint violations upon completion Created: 16/Apr/20 Updated: 29/Oct/23 Resolved: 23/Apr/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.0-rc3, 4.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Louis Williams | Assignee: | Louis Williams |
| Resolution: | Fixed | 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: |
v4.4
|
||||||||||||||||||||||||||||||||
| Sprint: | Execution Team 2020-05-04 | ||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||
| Linked BF Score: | 21 | ||||||||||||||||||||||||||||||||
| Description |
|
Single-phase index builds can encounter a deadlock, or worse crash, if an index build fails concurrently with an abort operation (dropIndexes, dropCollection, etc). The deadlock is as follows:
We should do as two-phase builds do, and only check key constraints upon completion ( |
| Comments |
| Comment by Githook User [ 24/Apr/20 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: (cherry picked from commit 66783cb504c25061b00c03fe55b70e3ca4125ed5) |
| Comment by Githook User [ 23/Apr/20 ] |
|
Author: {'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com', 'username': 'louiswilliams'}Message: |