[SERVER-32345] Check if we need to initial sync before rebuilding unfinished indexes Created: 14/Dec/17 Updated: 27/Oct/23 Resolved: 29/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Judah Schvimer | Assignee: | Tess Avitabile (Inactive) |
| Resolution: | Gone away | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Sprint: | Repl 2018-09-10 | ||||||||
| Participants: | |||||||||
| Description |
|
We first restart in-progress indexes: https://github.com/mongodb/mongo/blob/a08d6998928720aeea25546dca785f242b6b102d/src/mongo/db/db.cpp#L926 , and then we start replication: https://github.com/mongodb/mongo/blob/a08d6998928720aeea25546dca785f242b6b102d/src/mongo/db/db.cpp#L958 |
| Comments |
| Comment by Tess Avitabile (Inactive) [ 29/Aug/18 ] |
|
The call to restartInProgressIndexesFromLastShutdown() is always a no-op for replica set members, since indexes are rebuilt using rebuildIndexes(). |
| Comment by Eric Milkie [ 14/Dec/17 ] |
|
This seems like an optimization that almost no one would encounter in practice. |