Engineering Ticket Description:
To avoid unnecessary rollback after a PV1 election, the new primary finds the node with the highest lastOpTime, then tries to sync all the oplog from that node to catch up its opTime. This ticket is for the catch-up phase.
If the catch-up timeout expires before we exhaust all the sync source’s oplog entries, the new primary ends the catch-up phase and proceeds to exit drain mode like normal.
If the query from the remote node fails, treat the same as if the catch-up timeout expired. Do not attempt to choose a new sync source.