Operational Defect Database

BugZero found this defect 2364 days ago.

MongoDB | 423156

[SERVER-30934] dbCheck command causes server to crash if database for collection it is processing gets dropped

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.5.13

Description:

Info

DbCheckJob::_getCollectionMetadata() should check whether AutoGetDbForDbCheck::getDb() returns a null pointer in addition to checking whether Database::getCollection() returns a null pointer. auto collection = agd.getDb()->getCollection(opCtx, info.nss);   if (!collection) { return false; }

Top User Comments

ramon.fernandez commented on Fri, 8 Sep 2017 18:11:28 +0000: Author: {'username': u'louiswilliams', 'name': u'Louis Williams', 'email': u'louis.williams@mongodb.com'} Message:SERVER-30934 Check if DB is null before getting collection Branch:master https://github.com/mongodb/mongo/commit/d5babd4bf91055fa635deda2b9052cfa5ee2c2fc louis.williams commented on Fri, 8 Sep 2017 17:55:37 +0000: Github commit: https://github.com/mongodb/mongo/commit/d5babd4bf91055fa635deda2b9052cfa5ee2c2fc

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...