[SERVER-25072] BalancerPolicy with a single chunk and more than one shard causes that chunk to constantly move Created: 14/Jul/16  Updated: 22/Mar/18  Resolved: 15/Jul/16

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

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 17 (07/15/16)
Participants:

 Description   

The parallel BalancerPolicy has a bug in the case of a single chunk and more than one shards, which causes it to always try to move this chunk to the currently empty shard. This is due to integer division truncation.



 Comments   
Comment by Githook User [ 15/Jul/16 ]

Author:

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

Message: SERVER-25072 Fix integer division truncation error in BalancerPolicy
Branch: master
https://github.com/mongodb/mongo/commit/751f67f4a6ff89f7b8b2475301e1976f4f583f95

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