[SERVER-36545] Avoid submitting chunk-split tasks while shouldAutoSplit is false on the BalancerConfiguration Created: 08/Aug/18 Updated: 29/Oct/23 Resolved: 09/Aug/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.2 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Matthew Saltz (Inactive) | Assignee: | Matthew Saltz (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
Right now we wait until we're here to check the "shouldAutoSplit" flag on the BalancerConfiguration, and that's after refreshing from the config server. We should check earlier on, in the ShardServerOpObserver, instead, so that we don't spend time submitting chunk split tasks when we aren't supposed to be autosplitting anyways. We should still track the chunk size of inserts in case it gets turned on. Also, since we have a periodic task that's running in the background to refresh the balancer configuration, I think it's okay if there's a short period of time where the setting has been changed but we're not submitting chunk split tasks. |
| Comments |
| Comment by Githook User [ 09/Aug/18 ] |
|
Author: {'name': 'Matthew Saltz', 'email': 'matthew.saltz@mongodb.com', 'username': 'saltzm'}Message: |