[SERVER-15986] Starting with different storage engines in the same dbpath should error/warn Created: 06/Nov/14  Updated: 27/Oct/15  Resolved: 24/Nov/14

Status: Closed
Project: Core Server
Component/s: Storage, Usability
Affects Version/s: 2.8.0-rc0
Fix Version/s: 2.6.6, 2.8.0-rc2

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

Issue Links:
Depends
is depended on by SERVER-16332 Fix coverity defect in StorageEngineM... Closed
is depended on by SERVER-16567 extend data directory metadata to hol... Closed
Duplicate
is duplicated by SERVER-16175 allowing multiple storage engines in ... Closed
is duplicated by SERVER-16116 Server should not start if datafiles ... Closed
Related
related to SERVER-16283 Can't start new wiredtiger node with ... Closed
related to SERVER-17210 Crash can leave data inaccessible due... Closed
related to DOCS-4408 Server startup will fail if data fil... Closed
Tested
Operating System: ALL
Backport Completed:
Participants:

 Description   

If no error is generated then it is easy to accidentally change the storage option and think your data has disappeared, or have extra and unused files.

This can be done by storing a metadata file about what storage engine was used to create the persistent storage so that we can detect if an attempt is used to use a different storage engine after that.



 Comments   
Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 SERVER-16283 prevent server from starting up when non-active storage engine files are detected
Branch: v2.6
https://github.com/mongodb/mongo/commit/24037e138350ca04e2484468978f58355bf1bb96

Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 added storage_engine_metadata to src/mongo/SConscript
Branch: v2.6
https://github.com/mongodb/mongo/commit/10b781ea1d18d8ee487d0e1fc8bef537baabf4fe

Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 SERVER-16283 improve validation to detect mmapv1 local.ns files

(cherry picked from commit bb8e5e6b28f31a0b4e9eefc5df52581073bf332d)
Branch: v2.6
https://github.com/mongodb/mongo/commit/741abbe02d6d0b6eb1334cc66458393363f30833

Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 added storage_engine_metadata - reads and writes storage engine metadata file in data directory

(cherry picked from commit a932b12ac03366e9336ffc92e7710ddb5c3b3a39)
Branch: v2.6
https://github.com/mongodb/mongo/commit/ae7be5f2fa3ffb4efb51b564bcb5ad00b0033937

Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 SERVER-16283 enable storage engine check
Branch: master
https://github.com/mongodb/mongo/commit/8971aede7a00d0918645cb4fb0e579f153d737df

Comment by Githook User [ 24/Nov/14 ]

Author:

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

Message: SERVER-15986 SERVER-16283 improve validation to detect mmapv1 local.ns files
Branch: master
https://github.com/mongodb/mongo/commit/bb8e5e6b28f31a0b4e9eefc5df52581073bf332d

Comment by Githook User [ 23/Nov/14 ]

Author:

{u'username': u'monkey101', u'name': u'Dan Pasette', u'email': u'dan@10gen.com'}

Message: SERVER-15986 disable storage engine check
Branch: master
https://github.com/mongodb/mongo/commit/1b8545eb64b7aa260cc281ea2624504c1ee86d23

Comment by Githook User [ 20/Nov/14 ]

Author:

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

Message: SERVER-15986 prevent server from starting up when non-active storage engine files are detected
added storage_engine_metadata to mongo/db/storage/SConscript
fixed cleanbb.py so that cleanup() will remove directories as well.
fixed unix_socket1.js so that it does not store socket file in data directory
Branch: master
https://github.com/mongodb/mongo/commit/b2122dd20ae8cd761312301e90e0e7ca429ec8db

Comment by Githook User [ 20/Nov/14 ]

Author:

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

Message: SERVER-15986 added storage_engine_metadata - reads and writes storage engine metadata file in data directory
Branch: master
https://github.com/mongodb/mongo/commit/a932b12ac03366e9336ffc92e7710ddb5c3b3a39

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