Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-13703

drop collection in sharded environments should point out that all mongos instances need cache refreshed

      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.)

            Assignee:
            jason.price@mongodb.com Jason Price
            Reporter:
            nicholas.cottrell@mongodb.com Nic Cottrell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              3 years, 38 weeks, 2 days ago