Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12788

ObjectID error in replicaset

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical - P2
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Operating System:
      ALL

      Description

      My application erroneously registered one objectid like this.

      "_id": {
      		"$id": "5303cb0951dbc6cc0f000000"
      }

      When replicaset workers try to apply the changes on others members I received this message:

      Wed Feb 19 14:26:32.395 [repl writer worker 1] ERROR: writer worker caught exception: invalid operator: $id on: { ts: Timestamp 1392830792000|1, h: 1650460182289490216, v: 2, op: "d", ns: "database.collection", b: true, o: { _id: { $id: "5303cb0951dbc6cc0f000000" } } }

      To solve this problem I stopped the replicaset, and drop the oplog (i can't drop this entry) and restart the replicaset with a full sync.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              adamobr Adamo Tonete
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: