Problem Statement/Rationale
MongoDB doesn't allow deletion on capped collection. When Mongorestore performs restore with oplog replay, it should ignore the delete operation on the capped collection. Otherwise, mongorestore will fail with the following error message:
Failed: restore error: error applying oplog: applyOps: (IllegalOperation) cannot remove from a capped collection: test.cappedColl
===========================================
After discussion, we think the server should relax the restriction on applyOps for deletion since what mongorestore does with applyOps is very much like the initial sync during replication.
- causes
-
SERVER-65261 Deleting from a capped collection via collection scan reports number of documents deleted incorrectly
- Closed
-
PYTHON-3225 Test Failure - test_collection.TestCollection.test_acknowledged_delete
- Closed
- related to
-
GODRIVER-2315 Fix tests that expect errors on capped collection deletes
- Closed
-
SERVER-64369 Must not allow deletes from capped collections in FCV 4.4
- Closed