[SERVER-21626] Balancer should skip namespaces which get dropped while it is running Created: 23/Nov/15  Updated: 07/Sep/16  Resolved: 07/Sep/16

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

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

Issue Links:
Depends
Related
is related to SERVER-24853 Refactor Balancer code to use Migrati... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2016-08-29, Sharding 2016-09-19
Participants:

 Description   

Currently, the sharding balancer first selects chunks which should be moved around and then passes them to the _moveChunks routine to do the actual move. This routine does not expect any of these chunks' databases to disappear during the round, but there is nothing to prevent this (and there is no need to).

We should make the balancer _moveChunks routine skip databases and collections, which do not exist and there should be a secondary check, which checks the collection's epoch to ensure that if a collection is dropped and recreated, we will discard any further moves for that collection from this round.



 Comments   
Comment by Kaloian Manassiev [ 07/Sep/16 ]

Fixed as a result of SERVER-24853.

Comment by Githook User [ 23/Nov/15 ]

Author:

{u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}

Message: SERVER-21626 Do not fassert if namespace gets dropped during balancing
Branch: master
https://github.com/mongodb/mongo/commit/c5a60bf3705a6f060c15b1d21d5353391523e61d

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