[SERVER-4333] Add flag to the oplog entry for migration/sharding ops Created: 20/Nov/11  Updated: 11/Jul/16  Resolved: 22/Mar/12

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

Type: Improvement Priority: Major - P3
Reporter: Scott Hernandez (Inactive) Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-5292 Patch for SERVER-4333 for 2.0.x Closed
Related
is related to SERVER-21678 fromMigrate flag never set for delete... Closed
is related to SERVER-9397 fromMigrate flag not set properly for... Closed
Participants:

 Description   

Flag operations which are part of a migration, or other background tasks, and not actual user writes. Add a field like "s" (for scope) to indicate if it is part of a sharded operation, like a migrate (for the insert/update on the dest shard, and delete on the source shard). I'd have to think through all the type of ops for a complete list. Let me know if that would help.



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

This is too much of a change for a feature, not a bug, so should not be backported.

Comment by Eric Milkie [ 22/Mar/12 ]

backport requested in SERVER-5292

Comment by auto [ 22/Mar/12 ]

Author:

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

Message: SERVER-4333 ensure that all migrate ops are flagged with fromMigrate
Branch: master
https://github.com/mongodb/mongo/commit/c955cad81d39ad402120de05a7389c66d0ebad9f

Comment by auto [ 10/Feb/12 ]

Author:

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

Message: SERVER-4333 add fromMigrate flag to identify sharding oplog entries
Branch: master
https://github.com/mongodb/mongo/commit/abc3e0cb35c4ab0e837936e04f378c1d963c849b

Comment by Eliot Horowitz (Inactive) [ 07/Dec/11 ]

We should just add a fromMigrate : true field to the ops caused by a migrate.

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