[SERVER-17320] Need a way for collmod to support arbitrary storageEngine-specific options Created: 18/Feb/15  Updated: 06/Dec/22  Resolved: 15/Apr/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-18918 Specify replica level storage engine ... Open
related to SERVER-17312 Collmod must persist all supported op... Closed
Assigned Teams:
Storage Execution
Participants:

 Description   

This needs to handle validation in a similar way to options specified at collection creation time. All new engine-specific options must be namespaced.



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

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-17312 collmod command now handles parsing of all arguments

For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.

(cherry picked from commit ae18bbec33db1c4bf57d328505474eb7bba517df)

Conflicts:
src/mongo/db/storage/mmap_v1/catalog/namespace_details_collection_entry.cpp
src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.cpp
src/mongo/db/storage/mmap_v1/catalog/namespace_details_rsv1_metadata.h
Branch: v3.0
https://github.com/mongodb/mongo/commit/a162b3564dbfcedc431addf6b543320c26755e6a

Comment by Githook User [ 20/Feb/15 ]

Author:

{u'username': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}

Message: SERVER-17312 collmod command now handles parsing of all arguments

For the two currently supported engine-specific options, the collmod command
will handle parsing the arguments and tell the CollectionCatalogEntry to
update it's flags option.

This removes the ability of storage engines to have custom options that can
be changed after the collection is created. There were issues related to
argument validation and replication of changes (including for initial sync).
A correct solution will be designed as SERVER-17320.
Branch: master
https://github.com/mongodb/mongo/commit/ae18bbec33db1c4bf57d328505474eb7bba517df

Comment by Mathias Stearn [ 18/Feb/15 ]

SERVER-17312 covers the stopgap solution for 3.0

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