movePrimary can return the error 'it is already the primary' and is asserted in mongos_validate_writes.js. Instead, use ensurePrimaryShard, which handles and ignores this error. It's fine to ignore this error because it means that the goal is already accomplished, which randomly may be the case.
Use ensurePrimaryShard instead of movePrimary in mongos_validate_writes.js
- Assignee:
-
Dianna Hohensee (Inactive)
- Reporter:
-
Dianna Hohensee (Inactive)
- Votes:
-
0 Vote for this issue - Watchers:
-
2 Start watching this issue
- Created:
- Updated:
- Resolved: