Details
-
Task
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
If the following line is "bad replSet oplog entry?" then that error probably means that the ts field in the last oplog entry is the wrong type.
It can be checked with:
> db.oplog.rs.find({ts:{$type:17}}).({$natural:-1}).limit(1)
|
> // should return the same thing:
|
> db.oplog.rs.find().({$natural:-1}).limit(1)
|
Can be fixed with:
> db.oplog.rs.update({ts:{t:1234567891000,i:1234}}, {$set:{ts:new Timestamp(1234567891000, 1234)}})
|