[SERVER-64554] abortIndexBuild oplog entry has no effect when run with --recoverFromOplogAsStandalone Created: 16/Mar/22 Updated: 29/Oct/23 Resolved: 18/Mar/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 4.4.14, 5.0.8, 6.0.0-rc0 |
| 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
|
||||||||
| Sprint: | Execution Team 2022-03-21, Execution Team 2022-04-04 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 155 | ||||||||
| Description |
|
Unfinished index builds are not restarted in standalone mode and are in a frozen state.
When using --recoverFromOplogAsStandalone, the abortIndexBuild oplog entry will fail to apply. This is because there are no active index build threads to abort.
When replaying a startIndexBuild oplog entry later with an identical index specification, an exception is thrown.
The logic for the abortIndexBuild oplog entry should drop unfinished, frozen indexes to prevent this. |
| Comments |
| Comment by Githook User [ 07/Apr/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit 52e9dc623220c1467b075cca141eb4113e792117) |
| Comment by Githook User [ 07/Apr/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit aa0b99bca4cf47bab2ebb1587ee27729d732731d) |
| Comment by Githook User [ 06/Apr/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit 52e9dc623220c1467b075cca141eb4113e792117) |
| Comment by Githook User [ 06/Apr/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: (cherry picked from commit aa0b99bca4cf47bab2ebb1587ee27729d732731d) |
| Comment by Githook User [ 18/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |
| Comment by Githook User [ 18/Mar/22 ] |
|
Author: {'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}Message: |