[SERVER-35286] restartCatalog command incorrectly uses `Database::getCollection` API Created: 30/May/18  Updated: 29/Oct/23  Resolved: 30/May/18

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.0.0-rc2, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Daniel Gottlieb (Inactive) Assignee: Daniel Gottlieb (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Storage NYC 2018-06-04
Participants:
Linked BF Score: 0

 Description   

Database::getCollection expects a fully qualified namespace (i.e: <db>.<coll> form). However restartCatalog only passes in the collection. When the guard executes because of a failure to close, the process is guaranteed to crash.



 Comments   
Comment by Githook User [ 30/May/18 ]

Author:

{'username': 'dgottlieb', 'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-35286: Pass the oplog NamespaceString when getting the collection.

(cherry picked from commit 3b152ee018a4c88588371ef5f8eb978f7fb8a192)
Branch: v4.0
https://github.com/mongodb/mongo/commit/74dca4d0f5ba9459c59985e921229ee25bec8576

Comment by Githook User [ 30/May/18 ]

Author:

{'username': 'dgottlieb', 'name': 'Daniel Gottlieb', 'email': 'daniel.gottlieb@mongodb.com'}

Message: SERVER-35286: Pass the oplog NamespaceString when getting the collection.
Branch: master
https://github.com/mongodb/mongo/commit/3b152ee018a4c88588371ef5f8eb978f7fb8a192

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