-
Type: Bug
-
Resolution: Duplicate
-
Priority: Critical - P2
-
None
-
Affects Version/s: None
-
Component/s: Replication
-
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.
- duplicates
-
SERVER-12209 _id with $prefix field causes replication failure due to unvalidated insert
- Closed