[SERVER-44979] MongoInterfaceShardServer must check result of getDatabase Created: 06/Dec/19  Updated: 29/Oct/23  Resolved: 10/Dec/19

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Bug Priority: Major - P3
Reporter: Kevin Pulo Assignee: Ted Tuckman
Resolution: Fixed Votes: 0
Labels: qopt-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-44642 Verify that implementation of cross-d... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2019-12-16
Participants:
Linked BF Score: 20

 Description   

The functions dropCollection and createIndexes call getValue() on the result of getDatabase() without checking for errors. Like the other similar functions (createCollection, getIndexSpecs, and renameIfOptionsAndIndexesHaveNotChanged), they should wrap the getDatabase() calls with uassertStatusOK().

cc ted.tuckman



 Comments   
Comment by Githook User [ 10/Dec/19 ]

Author:

{'name': 'Ted Tuckman', 'username': 'TedTuckman', 'email': 'ted.tuckman@mongodb.com'}

Message: SERVER-44979 Add getDatabase status checking to MongoInterfaceShardSvr functions
Branch: master
https://github.com/mongodb/mongo/commit/43c6322caa07f2904188149741c07b894dacc7e1

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