[SERVER-4332] renameCollection across dbs doesn't replicate correctly Created: 20/Nov/11  Updated: 11/Jul/16  Resolved: 16/Feb/12

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

Type: Bug Priority: Major - P3
Reporter: Eliot Horowitz (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-4941 collection rename may not replicate /... Closed
Operating System: ALL
Participants:

 Comments   
Comment by auto [ 15/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4332 activate test now that everything's working
Branch: master
https://github.com/mongodb/mongo/commit/c94d2c910a2cd185c804abffe4bdbdfa28cc598e

Comment by auto [ 15/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4332 fix renameCollection for secondaries in replicasets

Calls to query() need to set the slaveOk option or else they won't work
when the rs_sync thread runs them on secondaries.
Branch: master
https://github.com/mongodb/mongo/commit/5d73be91e054d498eadeb842558111c74e0c61a6

Comment by auto [ 15/Feb/12 ]

Author:

{u'login': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-4332 add test for replicating renameCollection

I copied this from repl/repl9.js. Turns out this works fine
for master/slave but fails in replica sets. Test is disabled
until I can submit a fix.
Branch: master
https://github.com/mongodb/mongo/commit/c4619cf3833376ddd794ac11c9e8c4814e9bcd26

Comment by Eric Milkie [ 15/Feb/12 ]

I have successfully reproduced the issue. It seems like the delete of the source collection does not replicate properly.

Comment by Eliot Horowitz (Inactive) [ 12/Feb/12 ]

Based on discussion here: http://groups.google.com/group/mongodb-user/browse_thread/thread/f1b2aa0667c52456

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