Confirm a primary actually exists now

Check how the client connects

Look for writes pinned to a secondary

Enable retryable writes and a sane server selection timeout

Restart clients that hold a stale topology

Stop repeat elections if they keep happening