[SERVER-12788] ObjectID error in replicaset Created: 19/Feb/14  Updated: 10/Dec/14  Resolved: 19/Feb/14

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Critical - P2
Reporter: Adamo Tonete Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-12209 _id with $prefix field causes replica... Closed
Related
Operating System: ALL
Participants:

 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.



 Comments   
Comment by Scott Hernandez (Inactive) [ 19/Feb/14 ]

fixed in SERVER-12209

Generated at Thu Feb 08 03:29:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.