/usr/bin/node testReplicaSet5.js delay: 275 total: 20 time = 7 - Is about to open database ReplSet object emitted open - time: 31 DB object emitted open - time: 31 Open db - success! Starting Run # 1 ; time = 308 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908b8203a1f84e832635 } ], insertedCount: 1, insertedIds: [ 564b908b8203a1f84e832635 ] } ******** findOne result null { _id: 564b908b8203a1f84e832635, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 1 has completed! time = 757 Starting Run # 2 ; time = 858 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908b8203a1f84e832636 } ], insertedCount: 1, insertedIds: [ 564b908b8203a1f84e832636 ] } ******** findOne result null { _id: 564b908b8203a1f84e832636, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 2 has completed! time = 1292 Starting Run # 3 ; time = 1410 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908c8203a1f84e832637 } ], insertedCount: 1, insertedIds: [ 564b908c8203a1f84e832637 ] } ******** findOne result null { _id: 564b908c8203a1f84e832637, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 3 has completed! time = 1851 Starting Run # 4 ; time = 1962 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908c8203a1f84e832638 } ], insertedCount: 1, insertedIds: [ 564b908c8203a1f84e832638 ] } ******** findOne result null { _id: 564b908c8203a1f84e832638, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 4 has completed! time = 2394 Starting Run # 5 ; time = 2512 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908d8203a1f84e832639 } ], insertedCount: 1, insertedIds: [ 564b908d8203a1f84e832639 ] } ******** findOne result null { _id: 564b908d8203a1f84e832639, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 5 has completed! time = 2946 Starting Run # 6 ; time = 3062 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908d8203a1f84e83263a } ], insertedCount: 1, insertedIds: [ 564b908d8203a1f84e83263a ] } ******** findOne result null { _id: 564b908d8203a1f84e83263a, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 6 has completed! time = 3472 Starting Run # 7 ; time = 3613 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908e8203a1f84e83263b } ], insertedCount: 1, insertedIds: [ 564b908e8203a1f84e83263b ] } ******** findOne result null { _id: 564b908e8203a1f84e83263b, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 7 has completed! time = 4048 Starting Run # 8 ; time = 4164 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908f8203a1f84e83263c } ], insertedCount: 1, insertedIds: [ 564b908f8203a1f84e83263c ] } ******** findOne result null { _id: 564b908f8203a1f84e83263c, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 8 has completed! time = 4607 Starting Run # 9 ; time = 4716 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b908f8203a1f84e83263d } ], insertedCount: 1, insertedIds: [ 564b908f8203a1f84e83263d ] } ******** findOne result null { _id: 564b908f8203a1f84e83263d, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 9 has completed! time = 5159 Starting Run # 10 ; time = 5268 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90908203a1f84e83263e } ], insertedCount: 1, insertedIds: [ 564b90908203a1f84e83263e ] } ******** findOne result null { _id: 564b90908203a1f84e83263e, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 10 has completed! time = 5694 Starting Run # 11 ; time = 5818 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90908203a1f84e83263f } ], insertedCount: 1, insertedIds: [ 564b90908203a1f84e83263f ] } ******** findOne result null { _id: 564b90908203a1f84e83263f, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 11 has completed! time = 6303 Starting Run # 12 ; time = 6369 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90918203a1f84e832640 } ], insertedCount: 1, insertedIds: [ 564b90918203a1f84e832640 ] } ******** findOne result null { _id: 564b90918203a1f84e832640, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 12 has completed! time = 6846 Starting Run # 13 ; time = 6921 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90918203a1f84e832641 } ], insertedCount: 1, insertedIds: [ 564b90918203a1f84e832641 ] } ******** findOne result null { _id: 564b90918203a1f84e832641, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 13 has completed! time = 7348 Starting Run # 14 ; time = 7471 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90928203a1f84e832642 } ], insertedCount: 1, insertedIds: [ 564b90928203a1f84e832642 ] } ******** findOne result null { _id: 564b90928203a1f84e832642, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 14 has completed! time = 7916 Starting Run # 15 ; time = 8023 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90928203a1f84e832643 } ], insertedCount: 1, insertedIds: [ 564b90928203a1f84e832643 ] } ******** findOne result null { _id: 564b90928203a1f84e832643, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 15 has completed! time = 8474 Starting Run # 16 ; time = 8574 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90938203a1f84e832644 } ], insertedCount: 1, insertedIds: [ 564b90938203a1f84e832644 ] } ******** findOne result null { _id: 564b90938203a1f84e832644, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 16 has completed! time = 9110 Starting Run # 17 ; time = 9126 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90938203a1f84e832645 } ], insertedCount: 1, insertedIds: [ 564b90938203a1f84e832645 ] } ******** findOne result null { _id: 564b90938203a1f84e832645, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 17 has completed! time = 9561 Starting Run # 18 ; time = 9676 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90948203a1f84e832646 } ], insertedCount: 1, insertedIds: [ 564b90948203a1f84e832646 ] } ******** findOne result null { _id: 564b90948203a1f84e832646, a: 1, b: 2 } Waiting for the previous run to finish... ReplSet object emitted ha - time: 10010 Inside domain error handler: TypeError: Cannot read property 'name' of undefined at Server.equals (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:1081:16) at State.isPrimary (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/replset_state.js:71:39) at State.update (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/replset_state.js:404:69) at /media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/replset.js:991:27 at /media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:765:13 at b (domain.js:183:18) at Callbacks.emit (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:95:3) at null.messageHandler (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:243:23) at Socket. (/media/sergeyvolvovski/DataStorage/Projects/Builds/MongoDB-3.0/node_modules/mongodb/node_modules/mongodb-core/lib/connection/connection.js:262:22) at Socket.emit (events.js:95:17) ******** dropDatabase null ******** Run # 18 has completed! time = 10145 Starting Run # 19 ; time = 10225 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90958203a1f84e832647 } ], insertedCount: 1, insertedIds: [ 564b90958203a1f84e832647 ] } ******** findOne result null { _id: 564b90958203a1f84e832647, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 19 has completed! time = 10655 Starting Run # 20 ; time = 10776 ******** insert result null { result: { ok: 1, n: 1 }, ops: [ { a: 1, b: 2, _id: 564b90958203a1f84e832648 } ], insertedCount: 1, insertedIds: [ 564b90958203a1f84e832648 ] } ******** findOne result null { _id: 564b90958203a1f84e832648, a: 1, b: 2 } Waiting for the previous run to finish... ******** dropDatabase null ******** Run # 20 has completed! time = 11198 All done - time: 11198 DB object emitted close - time: 11200 db is closed! time = 11201 ; extCode = 0 Process finished with exit code 0