[SERVER-810] updates that modify _id don't replicate correctly Created: 22/Mar/10  Updated: 12/Jul/16  Resolved: 27/Apr/10

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

Type: Bug Priority: Major - P3
Reporter: Aaron Staple Assignee: Aaron Staple
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:

 Description   

We could consider either making this work with replication or preventing updates to _id altogether.



 Comments   
Comment by auto [ 27/Apr/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-810 explain test
http://github.com/mongodb/mongo/commit/01127481178d2688f8f32fbc8b14b5fa7cfacc3c

Comment by auto [ 27/Apr/10 ]

Author:

{'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

Message: SERVER-810 _id modifying updates replicate correctly
http://github.com/mongodb/mongo/commit/5f13e864d7f514c7e5d1e3574ea086c2bf96b4cc

Comment by Aaron Staple [ 23/Mar/10 ]

I believe that on the slave the original {_id:1} will remain, and {_id:2} will be added as well.

Comment by Eliot Horowitz (Inactive) [ 22/Mar/10 ]

hmm... what happens in that case right now?
i think we can defer for now

Comment by Aaron Staple [ 22/Mar/10 ]

No, I also mean situations like update( {_id:1}, {_id:2} ). When I was cleaning up the repl stuff before I was told not to worry about this case.

Comment by Eliot Horowitz (Inactive) [ 22/Mar/10 ]

is this just $set or $inc on _id?
those are supposed to be illegal.
can you do tonight or should i?

Generated at Thu Feb 08 02:55:12 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.