[DOCS-13703] drop collection in sharded environments should point out that all mongos instances need cache refreshed Created: 11/Jun/20  Updated: 30/Oct/23  Due: 04/Sep/20  Resolved: 01/Sep/20

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Major - P3
Reporter: Nic Cottrell Assignee: Jason Price
Resolution: Fixed Votes: 0
Labels: bite-sized, docs-administration
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-15797 Remove deprecated note for collection... Closed
related to SERVER-17397 Dropping a Database or Collection in ... Closed
related to DOCS-8514 dropDatabase in sharded environments ... Closed
Participants:
Days since reply: 3 years, 23 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

Description

Similar to DOCS-8514 dropping a collection and then reusing the name to create another collection in a sharded environment can lead to stale cache SERVER-17397

https://docs.mongodb.com/manual/reference/method/db.collection.drop/ should warn that dropping and reusing a collection name requires complex cache flushing 

Alternatively the docs could add that to avoid this problem, use remove({}) instead and manually drop any unneeded collections. 

Scope of changes

Impact to Other Docs

MVP (Work and Date)

Resources (Scope or Design Docs, Invision, etc.)



 Comments   
Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13703 drop collection sharded environments need cache refreshed
Branch: v3.6
https://github.com/mongodb/docs/commit/16c22f0ce23a0ddf177913cd726156fe08ab6038

Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13703 drop collection sharded environments need cache refreshed
Branch: v4.0
https://github.com/mongodb/docs/commit/cd4d31d006b724d7a8fd87c07c7055daeb66b062

Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13703 drop collection sharded environments need cache refreshed
Branch: v4.2
https://github.com/mongodb/docs/commit/e074868731868df540257d20fbba671373a0567d

Comment by Githook User [ 01/Sep/20 ]

Author:

{'name': 'Jason Price', 'email': 'jason.price@mongodb.com', 'username': 'jason-price-mongodb'}

Message: DOCS-13703 drop collection sharded environments need cache refreshed
Branch: master
https://github.com/mongodb/docs/commit/ac2201acf851f5c1d93bea72286b068e63c2a3d3

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