Hi Stennie,
- the specific version(s) of MongoDB server used in your replica set --> MongoDB 3.4.5
- the roles of the members showing
lastCommittedOpTime
set to 0 --> I do not have authentication enabled on this server. Server is started and access as Windows administrator user.
- your
rs.status()
output from the current primary with the hostnames redacted
myShard_0:PRIMARY> rs.status()
{
"set" : "myShard_0",
"date" : ISODate("2020-03-16T06:53:24.078Z"),
"myState" : 1,
"term" : NumberLong(57),
"heartbeatIntervalMillis" : NumberLong(2000),
"optimes" : {
"lastCommittedOpTime" : {
"ts" : Timestamp(0, 0),
"t" : NumberLong(-1)
},
"appliedOpTime" : {
"ts" : Timestamp(1584341601, 1),
"t" : NumberLong(57)
},
"durableOpTime" : {
"ts" : Timestamp(1584341601, 1),
"t" : NumberLong(57)
}
},
"members" : [
{
"_id" : 0,
"name" : "xxxx:27017",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 256214,
"optime" : {
"ts" : Timestamp(1584084717, 1),
"t" : NumberLong(2)
},
"optimeDurable" : {
"ts" : Timestamp(1584084717, 1),
"t" : NumberLong(2)
},
"optimeDate" : ISODate("2020-03-13T07:31:57Z"),
"optimeDurableDate" : ISODate("2020-03-13T07:31:57Z"),
"lastHeartbeat" : ISODate("2020-03-16T06:53:22.760Z"),
"lastHeartbeatRecv" : ISODate("2020-03-16T06:53:22.777Z"
),
"pingMs" : NumberLong(0),
"syncingTo" : "xxxx:27018",
"configVersion" : 104289
},
{
"_id" : 1,
"name" : "xxxx:27018",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 256217,
"optime" : {
"ts" : Timestamp(1584341601, 1),
"t" : NumberLong(57)
},
"optimeDate" : ISODate("2020-03-16T06:53:21Z"),
"electionTime" : Timestamp(1584086043, 1),
"electionDate" : ISODate("2020-03-13T07:54:03Z"),
"configVersion" : 104289,
"self" : true
}
],
"ok" : 1
}