Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-437

Document "couldn't query the local local.oplog.rs" error

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 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)}})

      Attachments

        Activity

          People

            bgrabar Bob Grabar
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 22 weeks ago