[SERVER-7003] Deletions during chunk movement can cause migrations to fail Created: 10/Sep/12  Updated: 11/Jul/16  Resolved: 13/Sep/12

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.2.0
Fix Version/s: 2.2.1, 2.3.0

Type: Bug Priority: Critical - P2
Reporter: Kevin Matulef Assignee: Kevin Matulef
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File delete_during_migrate.js    
Issue Links:
Depends
Duplicate
is duplicated by SERVER-7813 Assertion error moving chunks Closed
Operating System: ALL
Participants:

 Description   

If, while a chunk migration is in progress, objects inside of the chunk that's being moved are deleted on the donor shard, then the receiver shard can prematurely abort the migration, giving errors that look like:

Assertion: 16333:field names of bound { _id: ObjectId('5139739ec9b413112c01414b') } do not match those of keyPattern { a : 1.0 }

This does not compromise data, but prevents migrations from finishing, and impacts performance.



 Comments   
Comment by auto [ 13/Sep/12 ]

Author:

{u'date': u'2012-09-11T20:53:13-07:00', u'email': u'matulef@gmail.com', u'name': u'Kevin Matulef'}

Message: SERVER-7003 fix migrations in the presence of active deletions
Branch: v2.2
https://github.com/mongodb/mongo/commit/01f04c8f1369eb51558637d8bda1315a475446e4

Comment by auto [ 12/Sep/12 ]

Author:

{u'date': u'2012-09-11T20:53:13-07:00', u'email': u'matulef@gmail.com', u'name': u'Kevin Matulef'}

Message: SERVER-7003 fix migrations in the presence of active deletions
Branch: master
https://github.com/mongodb/mongo/commit/64429ff8c5f485b138f01fb05f2b78cb144d90ff

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