[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:
Depends
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: SERVER-50451: range_deleter_shutdown_and_failover_during_set_fcv.js should retry setFCV against mongos until success to handle slow elections

SERVER-50795 Extracting forceJumbo from docs in config.migrations in MigrationType::fromBSON can throw
Branch: v4.4
https://github.com/mongodb/mongo/commit/d09c3eb766b31f66d43cb784c7a68278e55a15cf

Comment by Githook User [ 30/Sep/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-50795 Extracting forceJumbo from docs in config.migrations in MigrationType::fromBSON can throw

SERVER-50451: range_deleter_shutdown_and_failover_during_set_fcv.js should retry setFCV against mongos until success to handle slow elections
Branch: v4.4
https://github.com/mongodb/mongo/commit/c2c2bdcff494ae95d893133845d60eac641ff7bc

Comment by Githook User [ 23/Sep/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-50795 Extracting forceJumbo from docs in config.migrations in MigrationType::fromBSON can throw
Branch: v4.4
https://github.com/mongodb/mongo/commit/b2c90426bb2573719e85ff161e0660ec4cfb506a

Generated at Thu Feb 08 05:23:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.