[SERVER-18156] SettingsType should do all validation and default value determination Created: 21/Apr/15  Updated: 19/Sep/15  Resolved: 30/Apr/15

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

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

Backwards Compatibility: Fully Compatible
Sprint: Sharding 2 04/24/15, Sharding 3 05/15/15
Participants:

 Description   

Currently SettingsType is used for two global settings: balancer and chunk size and the extraction of each of these two values is all over the code.

Instead of doing this, we should have two methods - getChunkSize and getBalancerSettings/isBalancerEnabled and these methods should do all the parsing and interpretation of the fields on the document.



 Comments   
Comment by Githook User [ 30/Apr/15 ]

Author:

{u'username': u'alabid', u'name': u'Daniel Alabi', u'email': u'alabidan@gmail.com'}

Message: SERVER-18156 SettingsType should do all validation and default value determination.

Removed s/balancing_window_test.cpp.
Added balancing window tests to type_settings_test.
Moved balancing window checking from Grid to SettingsType.
Branch: master
https://github.com/mongodb/mongo/commit/30c9fa8ef46c1c6a0951a0d8ab724991e5cc04e2

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