2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] MongoDB starting : pid=84055 port=31000 dbpath=./db/31000 64-bit host=Christians-MacBook-Pro.local 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] db version v3.2.11 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] git version: 009580ad490190ba33d1c6253ebd8d91808923e4 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] allocator: system 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] modules: none 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] build environment: 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] distarch: x86_64 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] target_arch: x86_64 2016-12-09T21:49:55.924+0100 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 31000 }, replication: { replSet: "rs" }, storage: { dbPath: "./db/31000" }, systemLog: { destination: "file", path: "db/31000.log" } } 2016-12-09T21:49:55.925+0100 I - [initandlisten] Detected data files in ./db/31000 created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. 2016-12-09T21:49:55.925+0100 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=9G,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0), 2016-12-09T21:49:56.551+0100 I STORAGE [initandlisten] Starting WiredTigerRecordStoreThread local.oplog.rs 2016-12-09T21:49:56.551+0100 I STORAGE [initandlisten] The size storer reports that the oplog contains 44525 records totaling to 4674297 bytes 2016-12-09T21:49:56.551+0100 I STORAGE [initandlisten] Sampling from the oplog between Dec 8 18:04:19:1 and Dec 9 21:47:00:2 to determine where to place markers for truncation 2016-12-09T21:49:56.551+0100 I STORAGE [initandlisten] Taking 2 samples and assuming that each section of oplog contains approximately 174340 records totaling to 18302457 bytes 2016-12-09T21:49:56.564+0100 I NETWORK [HostnameCanonicalizationWorker] Starting hostname canonicalization worker 2016-12-09T21:49:56.564+0100 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory './db/31000/diagnostic.data' 2016-12-09T21:49:56.565+0100 I NETWORK [initandlisten] waiting for connections on port 31000 2016-12-09T21:49:56.565+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60517 #1 (1 connection now open) 2016-12-09T21:49:56.565+0100 I NETWORK [conn1] end connection 127.0.0.1:60517 (0 connections now open) 2016-12-09T21:49:56.565+0100 W NETWORK [ReplicationExecutor] Failed to connect to 127.0.0.1:31001, reason: errno:61 Connection refused 2016-12-09T21:49:56.566+0100 W NETWORK [ReplicationExecutor] Failed to connect to 127.0.0.1:31002, reason: errno:61 Connection refused 2016-12-09T21:49:56.566+0100 I REPL [ReplicationExecutor] New replica set config in use: { _id: "rs", version: 7, protocolVersion: 1, members: [ { _id: 0, host: "localhost:12345", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 100.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "localhost:31001", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 2, host: "localhost:31002", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatIntervalMillis: 2000, heartbeatTimeoutSecs: 10, electionTimeoutMillis: 10000, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 }, replicaSetId: ObjectId('5849929337536d4b3f1a9485') } } 2016-12-09T21:49:56.566+0100 I REPL [ReplicationExecutor] This node is localhost:12345 in the config 2016-12-09T21:49:56.566+0100 I REPL [ReplicationExecutor] transition to STARTUP2 2016-12-09T21:49:56.566+0100 I REPL [ReplicationExecutor] Starting replication applier threads 2016-12-09T21:49:56.566+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:49:56.566+0100 I REPL [ReplicationExecutor] transition to RECOVERING 2016-12-09T21:49:56.566+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:56.567+0100 I REPL [ReplicationExecutor] transition to SECONDARY 2016-12-09T21:49:56.567+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31001 - HostUnreachable: Connection refused 2016-12-09T21:49:56.567+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31001; HostUnreachable: Connection refused 2016-12-09T21:49:56.567+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:49:56.567+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:56.567+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:56.567+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:56.568+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31001 - HostUnreachable: Connection refused 2016-12-09T21:49:56.568+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31001; HostUnreachable: Connection refused 2016-12-09T21:49:56.568+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:49:56.568+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:56.568+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:56.568+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:49:56.569+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31001 - HostUnreachable: Connection refused 2016-12-09T21:49:56.569+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31001; HostUnreachable: Connection refused 2016-12-09T21:49:56.569+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Failed to connect to localhost:31002 - HostUnreachable: Connection refused 2016-12-09T21:49:56.569+0100 I REPL [ReplicationExecutor] Error in heartbeat request to localhost:31002; HostUnreachable: Connection refused 2016-12-09T21:49:57.412+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60533 #2 (1 connection now open) 2016-12-09T21:49:57.412+0100 I NETWORK [conn2] end connection 127.0.0.1:60533 (0 connections now open) 2016-12-09T21:49:57.414+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60537 #3 (1 connection now open) 2016-12-09T21:49:58.247+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60545 #4 (2 connections now open) 2016-12-09T21:49:58.248+0100 I NETWORK [conn4] end connection 127.0.0.1:60545 (1 connection now open) 2016-12-09T21:49:58.250+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60549 #5 (2 connections now open) 2016-12-09T21:50:01.573+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:50:01.573+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:50:01.576+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:50:01.576+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:50:01.576+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:50:01.577+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:50:07.629+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:50:07.629+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:50:07.630+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:50:07.631+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 101 2016-12-09T21:50:07.631+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:50:08.600+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:50:12.452+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60563 #6 (3 connections now open) 2016-12-09T21:50:12.453+0100 I NETWORK [conn6] end connection 127.0.0.1:60563 (2 connections now open) 2016-12-09T21:50:12.454+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60565 #7 (3 connections now open) 2016-12-09T21:50:12.456+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60568 #8 (4 connections now open) 2016-12-09T21:50:42.482+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60587 #9 (5 connections now open) 2016-12-09T21:50:43.320+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60591 #10 (6 connections now open) 2016-12-09T21:50:45.457+0100 I REPL [ReplicationExecutor] can't see a majority of the set, relinquishing primary 2016-12-09T21:50:45.457+0100 I REPL [ReplicationExecutor] Stepping down from primary in response to heartbeat 2016-12-09T21:50:45.457+0100 I REPL [replExecDBWorker-2] transition to SECONDARY 2016-12-09T21:50:45.457+0100 I NETWORK [conn10] end connection 127.0.0.1:60591 (5 connections now open) 2016-12-09T21:50:45.458+0100 I NETWORK [conn8] end connection 127.0.0.1:60568 (5 connections now open) 2016-12-09T21:50:45.458+0100 I NETWORK [conn3] end connection 127.0.0.1:60537 (5 connections now open) 2016-12-09T21:50:45.458+0100 I NETWORK [conn5] end connection 127.0.0.1:60549 (5 connections now open) 2016-12-09T21:50:45.458+0100 I NETWORK [conn7] end connection 127.0.0.1:60565 (5 connections now open) 2016-12-09T21:50:45.458+0100 I NETWORK [conn9] end connection 127.0.0.1:60587 (5 connections now open) 2016-12-09T21:50:45.604+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60594 #11 (1 connection now open) 2016-12-09T21:50:45.605+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60597 #12 (2 connections now open) 2016-12-09T21:50:45.606+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60600 #13 (3 connections now open) 2016-12-09T21:50:45.702+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state PRIMARY 2016-12-09T21:50:45.703+0100 I REPL [ReplicationExecutor] Scheduling priority takeover at 2016-12-09T21:50:55.703+0100 2016-12-09T21:50:45.703+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:50:50.724+0100 I REPL [ReplicationExecutor] syncing from: localhost:31002 2016-12-09T21:50:50.725+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31002 2016-12-09T21:50:50.726+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31002 2016-12-09T21:50:50.728+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31002 2016-12-09T21:50:55.708+0100 I REPL [ReplicationExecutor] Canceling priority takeover callback 2016-12-09T21:50:55.708+0100 I REPL [ReplicationExecutor] Starting an election for a priority takeover 2016-12-09T21:50:55.708+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:50:55.708+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:50:55.708+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:50:55.709+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:50:55.709+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:50:55.710+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 103 2016-12-09T21:50:55.710+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:50:55.710+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:50:55.711+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:50:55.711+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:50:55.711+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:50:55.712+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:50:55.712+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60613 #14 (4 connections now open) 2016-12-09T21:50:55.713+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:50:55.713+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:51:04.470+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60622 #15 (5 connections now open) 2016-12-09T21:51:05.682+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60625 #16 (6 connections now open) 2016-12-09T21:51:05.683+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60628 #17 (7 connections now open) 2016-12-09T21:51:05.715+0100 I REPL [ReplicationExecutor] can't see a majority of the set, relinquishing primary 2016-12-09T21:51:05.715+0100 I REPL [ReplicationExecutor] Stepping down from primary in response to heartbeat 2016-12-09T21:51:05.715+0100 I REPL [replExecDBWorker-0] transition to SECONDARY 2016-12-09T21:51:05.715+0100 I NETWORK [conn15] end connection 127.0.0.1:60622 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn17] end connection 127.0.0.1:60628 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn14] end connection 127.0.0.1:60613 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn13] end connection 127.0.0.1:60600 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn16] end connection 127.0.0.1:60625 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn12] end connection 127.0.0.1:60597 (6 connections now open) 2016-12-09T21:51:05.715+0100 I NETWORK [conn11] end connection 127.0.0.1:60594 (6 connections now open) 2016-12-09T21:51:05.724+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:51:05.725+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:51:06.308+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60631 #18 (1 connection now open) 2016-12-09T21:51:15.808+0100 I REPL [ReplicationExecutor] Starting an election, since we've seen no PRIMARY in the past 10000ms 2016-12-09T21:51:15.808+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:51:15.809+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:51:15.810+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 104 2016-12-09T21:51:15.810+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:51:16.775+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:51:24.470+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60635 #19 (2 connections now open) 2016-12-09T21:51:25.685+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60638 #20 (3 connections now open) 2016-12-09T21:51:25.812+0100 I REPL [ReplicationExecutor] can't see a majority of the set, relinquishing primary 2016-12-09T21:51:25.812+0100 I REPL [ReplicationExecutor] Stepping down from primary in response to heartbeat 2016-12-09T21:51:25.812+0100 I REPL [replExecDBWorker-1] transition to SECONDARY 2016-12-09T21:51:25.812+0100 I NETWORK [conn19] end connection 127.0.0.1:60635 (2 connections now open) 2016-12-09T21:51:25.812+0100 I NETWORK [conn20] end connection 127.0.0.1:60638 (2 connections now open) 2016-12-09T21:51:25.812+0100 I NETWORK [conn18] end connection 127.0.0.1:60631 (2 connections now open) 2016-12-09T21:51:25.833+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:51:25.833+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:51:27.257+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60641 #21 (1 connection now open) 2016-12-09T21:51:27.258+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60644 #22 (2 connections now open) 2016-12-09T21:51:27.258+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60647 #23 (3 connections now open) 2016-12-09T21:51:30.837+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state PRIMARY 2016-12-09T21:51:30.837+0100 I REPL [ReplicationExecutor] Scheduling priority takeover at 2016-12-09T21:51:40.837+0100 2016-12-09T21:51:31.821+0100 I REPL [ReplicationExecutor] syncing from: localhost:31002 2016-12-09T21:51:31.822+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31002 2016-12-09T21:51:31.822+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31002 2016-12-09T21:51:31.824+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31002 2016-12-09T21:51:31.825+0100 I REPL [rsBackgroundSync] Starting rollback due to OplogStartMissing: our last op time fetched: (term: 104, timestamp: Dec 9 21:51:16:1). source's GTE: (term: 105, timestamp: Dec 9 21:51:27:2) hashes: (-5124576320452287639/5253057541588704644) 2016-12-09T21:51:31.825+0100 I REPL [rsBackgroundSync] beginning rollback 2016-12-09T21:51:31.825+0100 I REPL [rsBackgroundSync] rollback 0 2016-12-09T21:51:31.825+0100 I REPL [ReplicationExecutor] transition to ROLLBACK 2016-12-09T21:51:31.825+0100 I NETWORK [conn22] end connection 127.0.0.1:60644 (2 connections now open) 2016-12-09T21:51:31.825+0100 I NETWORK [conn21] end connection 127.0.0.1:60641 (2 connections now open) 2016-12-09T21:51:31.825+0100 I NETWORK [conn23] end connection 127.0.0.1:60647 (2 connections now open) 2016-12-09T21:51:31.825+0100 I REPL [rsBackgroundSync] rollback 1 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback 2 FindCommonPoint 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback our last optime: Dec 9 21:51:16:1 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback their last optime: Dec 9 21:51:27:2 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback diff in end of log times: -11 seconds 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback 3 fixup 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback 3.5 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] rollback 4 n:0 2016-12-09T21:51:31.826+0100 I REPL [rsBackgroundSync] minvalid=(term: 105, timestamp: Dec 9 21:51:27:2) 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback 4.6 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback 4.7 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback 5 d:0 u:0 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback 6 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback done 2016-12-09T21:51:31.827+0100 I REPL [rsBackgroundSync] rollback finished 2016-12-09T21:51:31.827+0100 I NETWORK [SyncSourceFeedback] Socket say send() errno:9 Bad file descriptor 127.0.0.1:31002 2016-12-09T21:51:31.828+0100 I REPL [SyncSourceFeedback] SyncSourceFeedback error sending update: socket exception [SEND_ERROR] for 127.0.0.1:31002 2016-12-09T21:51:31.828+0100 I REPL [SyncSourceFeedback] updateUpstream failed: Location9001: socket exception [SEND_ERROR] for 127.0.0.1:31002, will retry 2016-12-09T21:51:31.838+0100 I REPL [ReplicationExecutor] transition to RECOVERING 2016-12-09T21:51:31.838+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:51:32.843+0100 I REPL [ReplicationExecutor] syncing from: localhost:31002 2016-12-09T21:51:32.845+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31002 2016-12-09T21:51:32.846+0100 I REPL [ReplicationExecutor] transition to SECONDARY 2016-12-09T21:51:32.848+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:51:40.838+0100 I REPL [ReplicationExecutor] Canceling priority takeover callback 2016-12-09T21:51:40.838+0100 I REPL [ReplicationExecutor] Starting an election for a priority takeover 2016-12-09T21:51:40.838+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:51:40.838+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:51:40.839+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 106 2016-12-09T21:51:40.839+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] dropping unhealthy pooled connection to localhost:31002 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] Failed to close stream: Socket is not connected 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] dropping unhealthy pooled connection to localhost:31002 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] after drop, pool was empty, going to spawn some connections 2016-12-09T21:51:40.840+0100 I ASIO [ReplicationExecutor] Failed to close stream: Socket is not connected 2016-12-09T21:51:40.840+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31002 2016-12-09T21:51:40.842+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60679 #24 (1 connection now open) 2016-12-09T21:51:40.842+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31002 2016-12-09T21:51:40.842+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:51:40.866+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:51:44.474+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60703 #25 (2 connections now open) 2016-12-09T21:51:48.325+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60707 #26 (3 connections now open) 2016-12-09T21:51:50.843+0100 I REPL [ReplicationExecutor] can't see a majority of the set, relinquishing primary 2016-12-09T21:51:50.843+0100 I REPL [ReplicationExecutor] Stepping down from primary in response to heartbeat 2016-12-09T21:51:50.843+0100 I REPL [replExecDBWorker-2] transition to SECONDARY 2016-12-09T21:51:50.843+0100 I NETWORK [conn25] end connection 127.0.0.1:60703 (2 connections now open) 2016-12-09T21:51:50.843+0100 I NETWORK [conn26] end connection 127.0.0.1:60707 (2 connections now open) 2016-12-09T21:51:50.843+0100 I NETWORK [conn24] end connection 127.0.0.1:60679 (0 connections now open) 2016-12-09T21:51:50.854+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:51:50.854+0100 I REPL [ReplicationExecutor] Member localhost:31002 is now in state SECONDARY 2016-12-09T21:51:51.381+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60710 #27 (1 connection now open) 2016-12-09T21:51:51.381+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60713 #28 (2 connections now open) 2016-12-09T21:51:51.382+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60716 #29 (3 connections now open) 2016-12-09T21:51:55.858+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state PRIMARY 2016-12-09T21:51:55.858+0100 I REPL [ReplicationExecutor] Scheduling priority takeover at 2016-12-09T21:52:05.858+0100 2016-12-09T21:51:55.897+0100 I REPL [ReplicationExecutor] syncing from: localhost:31001 2016-12-09T21:51:55.898+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31001 2016-12-09T21:51:55.899+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Connecting to localhost:31001 2016-12-09T21:51:55.900+0100 I ASIO [NetworkInterfaceASIO-BGSync-0] Successfully connected to localhost:31001 2016-12-09T21:51:55.901+0100 I REPL [rsBackgroundSync] Starting rollback due to OplogStartMissing: our last op time fetched: (term: 106, timestamp: Dec 9 21:51:40:2). source's GTE: (term: 107, timestamp: Dec 9 21:51:51:2) hashes: (4362014232950398781/-1706721783336548570) 2016-12-09T21:51:55.901+0100 I REPL [rsBackgroundSync] beginning rollback 2016-12-09T21:51:55.901+0100 I REPL [rsBackgroundSync] rollback 0 2016-12-09T21:51:55.901+0100 I REPL [ReplicationExecutor] transition to ROLLBACK 2016-12-09T21:51:55.901+0100 I NETWORK [conn29] end connection 127.0.0.1:60716 (2 connections now open) 2016-12-09T21:51:55.901+0100 I REPL [rsBackgroundSync] rollback 1 2016-12-09T21:51:55.901+0100 I NETWORK [conn27] end connection 127.0.0.1:60710 (2 connections now open) 2016-12-09T21:51:55.901+0100 I NETWORK [conn28] end connection 127.0.0.1:60713 (1 connection now open) 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback 2 FindCommonPoint 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback our last optime: Dec 9 21:51:40:2 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback their last optime: Dec 9 21:51:51:2 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback diff in end of log times: -11 seconds 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback 3 fixup 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback 3.5 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] rollback 4 n:0 2016-12-09T21:51:55.902+0100 I REPL [rsBackgroundSync] minvalid=(term: 107, timestamp: Dec 9 21:51:51:2) 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback 4.6 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback 4.7 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback 5 d:0 u:0 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback 6 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback done 2016-12-09T21:51:55.903+0100 I REPL [rsBackgroundSync] rollback finished 2016-12-09T21:51:55.903+0100 I NETWORK [SyncSourceFeedback] Socket say send() errno:9 Bad file descriptor 127.0.0.1:31001 2016-12-09T21:51:55.903+0100 I REPL [SyncSourceFeedback] SyncSourceFeedback error sending update: socket exception [SEND_ERROR] for 127.0.0.1:31001 2016-12-09T21:51:55.903+0100 I REPL [SyncSourceFeedback] updateUpstream failed: Location9001: socket exception [SEND_ERROR] for 127.0.0.1:31001, will retry 2016-12-09T21:51:55.914+0100 I REPL [ReplicationExecutor] transition to RECOVERING 2016-12-09T21:51:55.914+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:51:56.918+0100 I REPL [ReplicationExecutor] syncing from: localhost:31001 2016-12-09T21:51:56.919+0100 I REPL [SyncSourceFeedback] setting syncSourceFeedback to localhost:31001 2016-12-09T21:51:56.921+0100 I REPL [ReplicationExecutor] transition to SECONDARY 2016-12-09T21:51:56.923+0100 I REPL [ReplicationExecutor] could not find member to sync from 2016-12-09T21:52:04.477+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60730 #30 (1 connection now open) 2016-12-09T21:52:05.860+0100 I REPL [ReplicationExecutor] Canceling priority takeover callback 2016-12-09T21:52:05.860+0100 I REPL [ReplicationExecutor] Starting an election for a priority takeover 2016-12-09T21:52:05.860+0100 I REPL [ReplicationExecutor] conducting a dry run election to see if we could be elected 2016-12-09T21:52:05.861+0100 I REPL [ReplicationExecutor] dry election run succeeded, running for election 2016-12-09T21:52:05.862+0100 I REPL [ReplicationExecutor] election succeeded, assuming primary role in term 108 2016-12-09T21:52:05.862+0100 I REPL [ReplicationExecutor] transition to PRIMARY 2016-12-09T21:52:05.862+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Connecting to localhost:31001 2016-12-09T21:52:05.864+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60735 #31 (2 connections now open) 2016-12-09T21:52:05.864+0100 I ASIO [NetworkInterfaceASIO-Replication-0] Successfully connected to localhost:31001 2016-12-09T21:52:05.865+0100 I REPL [ReplicationExecutor] Member localhost:31001 is now in state SECONDARY 2016-12-09T21:52:05.949+0100 I REPL [rsSync] transition to primary complete; database writes are now permitted 2016-12-09T21:52:08.327+0100 I NETWORK [initandlisten] connection accepted from 127.0.0.1:60740 #32 (3 connections now open) 2016-12-09T21:52:10.513+0100 I CONTROL [signalProcessingThread] got signal 2 (Interrupt: 2), will terminate after current cmd ends 2016-12-09T21:52:10.513+0100 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture 2016-12-09T21:52:10.515+0100 I REPL [signalProcessingThread] Stopping replication applier threads 2016-12-09T21:52:11.962+0100 I CONTROL [signalProcessingThread] now exiting 2016-12-09T21:52:11.962+0100 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets... 2016-12-09T21:52:11.962+0100 I NETWORK [signalProcessingThread] closing listening socket: 6 2016-12-09T21:52:11.962+0100 I NETWORK [signalProcessingThread] closing listening socket: 7 2016-12-09T21:52:11.963+0100 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-31000.sock 2016-12-09T21:52:11.963+0100 I NETWORK [signalProcessingThread] shutdown: going to flush diaglog... 2016-12-09T21:52:11.963+0100 I NETWORK [signalProcessingThread] shutdown: going to close sockets... 2016-12-09T21:52:11.963+0100 I NETWORK [conn32] end connection 127.0.0.1:60740 (2 connections now open) 2016-12-09T21:52:11.963+0100 I NETWORK [conn31] end connection 127.0.0.1:60735 (2 connections now open) 2016-12-09T21:52:11.963+0100 I NETWORK [conn30] end connection 127.0.0.1:60730 (2 connections now open) 2016-12-09T21:52:11.963+0100 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down 2016-12-09T21:52:12.109+0100 I STORAGE [signalProcessingThread] shutdown: removing fs lock... 2016-12-09T21:52:12.109+0100 I CONTROL [signalProcessingThread] dbexit: rc: 0