Skip to content

Instantly share code, notes, and snippets.

@mikepea
Created October 20, 2014 11:14
Show Gist options
  • Save mikepea/a3ebbada343c7c1f07b4 to your computer and use it in GitHub Desktop.
Save mikepea/a3ebbada343c7c1f07b4 to your computer and use it in GitHub Desktop.
MongoDB replSet primary flip (secondary node goes primary) log file snippet
Mon Oct 20 00:22:38 [rsHealthPoll] DBClientCursor::init call() failed
Mon Oct 20 00:22:38 [rsHealthPoll] replSet info mongodb-02.local:27017 is down (or slow to respond): DBClientBase::findN: transport error: mongodb-02
.local:27017 query: { replSetHeartbeat: "rs0", v: 3, pv: 1, checkEmpty: false, from: "10.3.13.10:27017" }
Mon Oct 20 00:22:38 [rsHealthPoll] replSet member mongodb-02.local:27017 is now in state DOWN
Mon Oct 20 00:22:38 [rsMgr] replSet info electSelf 0
Mon Oct 20 00:22:38 [rsMgr] replSet PRIMARY
Mon Oct 20 00:22:40 [rsHealthPoll] replSet member mongodb-02.local:27017 is up
Mon Oct 20 00:22:40 [rsHealthPoll] replSet member mongodb-02.local:27017 is now in state RECOVERING
Mon Oct 20 00:22:42 [rsHealthPoll] replSet member mongodb-02.local:27017 is now in state SECONDARY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment