[SERVER-50795] Extracting forceJumbo from docs in config.migrations in MigrationType::fromBSON can throw Created: 08/Sep/20 Updated: 29/Oct/23 Resolved: 23/Sep/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 4.4.0 |
| Fix Version/s: | 4.4.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Janna Golden | Assignee: | Janna Golden |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | sharding-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Sharding 2020-09-21, Sharding 2020-10-05 | ||||
| Participants: | |||||
| Description |
|
A new field 'forceJumbo' was added to docs in config.migraitons in v4.4. In MigrationType::fromBSON, we attempt to extract this field from a BSONObj which will throw NoSuchKey if the field does not exist. We should prevent the server from throwing if the field does not exist and instead use the default value 'doNotForceJumbo'. |
| Comments |
| Comment by Githook User [ 30/Sep/20 ] |
|
Author: {'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}Message:
|
| Comment by Githook User [ 30/Sep/20 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message:
|
| Comment by Githook User [ 23/Sep/20 ] |
|
Author: {'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}Message: |