[SERVER-17210] Crash can leave data inaccessible due to empty storage.bson file Created: 06/Feb/15  Updated: 25/Jan/17  Resolved: 11/Feb/15

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: 3.0.0-rc8
Fix Version/s: 3.0.0-rc9, 3.1.0

Type: Bug Priority: Major - P3
Reporter: Bruce Lucas (Inactive) Assignee: Benety Goh
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-17152 WiredTiger file corrupted during powe... Closed
is related to SERVER-15986 Starting with different storage engin... Closed
is related to SERVER-16332 Fix coverity defect in StorageEngineM... Closed
is related to SERVER-16677 mongod.lock file should be present in... Closed
is related to SERVER-16760 Coverity analysis defect 49690: Resou... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Completed:
Sprint: RPL 0 3/13/15
Participants:

 Description   

A crash shortly after initializing a db directory can leave the data inaccessible due to an empty storage.bson file. An fsync of the newly written file in StorageEngineMetadata::write before allowing any db data to be written should fix this.



 Comments   
Comment by Githook User [ 11/Feb/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-17210 fixed typo in validation warning

(cherry picked from commit 7997065932af5c6af2b03613c9e2de0e11f8f518)
Branch: v3.0
https://github.com/mongodb/mongo/commit/3dd69dcf53681c19e4e755175b2f374816199883

Comment by Githook User [ 11/Feb/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-17210 overwrite existing metadata on startup if corrupted

(cherry picked from commit eb09fb001f22257cca43ef4c846843e0a2c40a31)
Branch: v3.0
https://github.com/mongodb/mongo/commit/afb85b67b4d664ffec933596fe5785ec29d2d70e

Comment by Githook User [ 11/Feb/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-17210 fixed typo in validation warning
Branch: master
https://github.com/mongodb/mongo/commit/7997065932af5c6af2b03613c9e2de0e11f8f518

Comment by Githook User [ 11/Feb/15 ]

Author:

{u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}

Message: SERVER-17210 overwrite existing metadata on startup if corrupted
Branch: master
https://github.com/mongodb/mongo/commit/eb09fb001f22257cca43ef4c846843e0a2c40a31

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