Otherwise, if the node stepped down and term was updated just before the term was saved, the operation will keep getting retried even while the node is secondary, until the node becomes primary again (which may never happen).
This is particularly painful because a warning message will keep being logged.
- related to
-
SERVER-46118 Make migration_util helpers save the repl set term before finalizing migration
- Closed