[SERVER-23634] Abstract the shard usage statistics collection logic behind an interface Created: 11/Apr/16  Updated: 26/Apr/16  Resolved: 14/Apr/16

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

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)
Participants:

 Description   

Currently the shard usage statistics collection logic is built together with the balancer. We should pull it behind an interface so that it can be independently unit-tested and so that the balancer can be unit-tested on its own as well.



 Comments   
Comment by Githook User [ 14/Apr/16 ]

Author:

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

Message: SERVER-23634 Move shard usage statistics gathering behind an interface

Currently the shard usage statistics gathering is done inline in the
balancer, together with some free functions in balancer_policy.cpp. This
change pulls out this common code and puts it behind an interface so we
can mock and unit-test it.
Branch: master
https://github.com/mongodb/mongo/commit/83dce733e09188e2c6cefc63eb70abe5e94e61da

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