[SERVER-64304] Using --recoverFromOplogAsStandalone can result in index builds crashing the server Created: 07/Mar/22 Updated: 29/Oct/23 Resolved: 09/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.14, 6.0.0-rc0, 5.0.7 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Gregory Wlodarek | Assignee: | Gregory Wlodarek |
| 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: |
v5.0, v4.4
|
||||||||||||||||
| Steps To Reproduce: | See Matt's patch build. |
||||||||||||||||
| Sprint: | Execution Team 2022-03-21 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Linked BF Score: | 146 | ||||||||||||||||
| Description |
|
When starting mongod with --recoverFromOplogAsStandalone, unfinished index builds don't get resumed:
However, if we come across an oplog entry to start an index build, it will begin building the index. Once the oplog is replayed, the server enters into a read-only mode:
If the index build was unfinished at this point, it will result in a crash:
|
| Comments |
| Comment by Githook User [ 10/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit d563fc234fedf423e55f99bc840ba8188b523603) |
| Comment by Githook User [ 10/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |
| Comment by Githook User [ 10/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit c83c80d2e58040c373a9f29be0c3f7b6595ea7c6) |
| Comment by Githook User [ 09/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |
| Comment by Githook User [ 09/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |
| Comment by Githook User [ 09/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |