[SERVER-41696] Stop generating the 'ns' field for index spec catalog entries Created: 13/Jun/19  Updated: 29/Oct/23  Resolved: 30/Jul/19

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

Type: Improvement Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by DRIVERS-731 Handle absence of 'ns' field in index... Closed
is depended on by SERVER-41697 Remove the 'ns' field from any existi... Closed
Documented
is documented by DOCS-12926 Investigate changes in SERVER-41696: ... Closed
Related
related to SERVER-41422 Allow the absence of the 'ns' field f... Closed
is related to SERVER-42629 Duplicate 'ns' field in the DurableCa... Backlog
is related to SERVER-39373 Remove the 'ns' field requirement on ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-07-29, Execution Team 2019-08-12
Participants:
Case:
Linked BF Score: 50

 Description   

The collection catalog stores metadata for each collection in one document. This includes an array of index specs for indexes belonging to the collection. Each index spec entry contains the 'ns' field, and with the removal of the restriction on collection name length, this has the potential to quickly hit the documents BSON limit.

There is already an 'ns' field at the top-level of the collection metadata document that could be used instead.



 Comments   
Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-41696 Remove the 'ns' field from index specs
Branch: master
https://github.com/mongodb/mongo/commit/0d6d248c39a5b4e43eefc9320b5dec3229cfcfdb

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-41696 Do not use the 'ns' field from index specs to compute the dbhash
Branch: master
https://github.com/mongodb/mongo/commit/47d0308cd596c6d40d6a3069379be1bdaf51d47b

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-41696 Modify tests depending on the 'ns' field from index specs to no longer have a dependency on it
Branch: master
https://github.com/mongodb/mongo/commit/ccf8a4f2deb3e566c11efb36159c04a0a02e8775

Comment by Githook User [ 30/Jul/19 ]

Author:

{'name': 'Gregory Wlodarek', 'username': 'GWlodarek', 'email': 'gregory.wlodarek@mongodb.com'}

Message: SERVER-41696 Avoid depending on the 'ns' field from index specs for the TTL monitor
Branch: master
https://github.com/mongodb/mongo/commit/7d9d65338f22220d59f57b09c1936ae6da41ac8c

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