Question
A replica set has no primary and writes are unavailable; how should it be triaged?
Answer
1. Replica set status: voting majority reachable? 2. If not, restore members or network. 3. If so, check replica set configuration for electable members. 4. Check log for election failures. 5. Fix cause, keeping prior configuration; confirm writable primary. Applies to self-managed MongoDB only.