[SERVER-42802] Verify that all in-progress indexes are built before awaiting replication when running the checkDBHashes hook Created: 13/Aug/19 Updated: 16/Aug/19 Resolved: 16/Aug/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 4.2.0-rc8, 4.3.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Blake Oler | Assignee: | Blake Oler |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
This will prevent in-progress indexes from causing an inconsistency when checking collStats for a collection. |
| Comments |
| Comment by Max Hirschhorn [ 13/Aug/19 ] |
blake.oler, we should be doing this already. The checkReplicaSet() function runs the collMod command on every collection in order to wait for any in-progress background index builds to complete. |