[SERVER-23609] Make top chunk split use the balancer to move chunks Created: 07/Apr/16  Updated: 16/May/16  Resolved: 03/May/16

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 13 (04/22/16), Sharding 14 (05/13/16)
Participants:

 Description   

The top chunk split logic currently runs a mini balancer round in order to obtain an up-to-date view of the shard utilization and move the chunk. Instead of doing it itself, it should delegate this responsibility to the balancer so that when the balancer moves to the config server there is no direct dependency.



 Comments   
Comment by Githook User [ 03/May/16 ]

Author:

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

Message: SERVER-23609 Make top chunk split use the balancer to move chunks

Moves all direct access to balancer structures out of the top chunk split
optimization code and changes it to an explicit call to the balancer.
Branch: master
https://github.com/mongodb/mongo/commit/6b87a77ced925398b7485abaf0fa36bafcccc52a

Comment by Githook User [ 29/Apr/16 ]

Author:

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

Message: SERVER-23609 Introduce RAII class for retrieving sharding cache objects

Around the sharding code there are a lot of repeated code sequences, where
we first check for existence of the database, then get the chunk manager.
In an effort to reduce this code duplication and to eventually be able to
get rid of the shared pointer references, this change introduces RAII
objects similar to the ones we have in mongod.
Branch: master
https://github.com/mongodb/mongo/commit/dff63f2afc63ee0b4e3288f50d435af83995e370

Comment by Githook User [ 22/Apr/16 ]

Author:

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

Message: SERVER-23609 Get rid of struct ChunkInfo

Merges this structure in the MigrateInfo class.
Branch: master
https://github.com/mongodb/mongo/commit/5d7fc3355a967026b76f635554bdcb09a76caa3e

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