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

ObjectID error in replicaset

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • ALL

      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.

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

              Created:
              Updated:
              Resolved: