[CXX-1990] Make 'reIndex' a standalone-only command Created: 13/Apr/20 Updated: 20/Apr/20 Resolved: 20/Apr/20 |
|
| Status: | Closed |
| Project: | C++ Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Backlog - Core Eng Program Management Team | Assignee: | Unassigned |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Description |
Description of Drivers Ticket:Downstream Change Summary The reIndex command can now only be run on a standalone mongod. Description of Linked TicketTrying to run the 'reIndex' command on a secondary while having unfinished prepared transactions will hit an invariant. After dropping the index that will be re-indexed, we hit an invariant when doing a collection scan to insert all the documents in the collection for that index.
ldeng recommended to try set the 'canIgnorePrepareConflicts' flag to true for the 'reIndex' command but that ended up hitting another invariant while trying to drop all the indexes.
We should consider disallowing the 'reIndex' command from running on secondaries and removing it in a future release. See DRIVERS-1183 for updated details. |
| Comments |
| Comment by April Schoffer [ 20/Apr/20 ] |
|
No references to reIndex in C++ |