Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63201

Relax restriction of deletion ops in applyOps command.

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0, 5.0.7
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • v5.0
    • Execution Team 2022-02-21
    • 150

      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.

       

            Assignee:
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Reporter:
            huan.li@mongodb.com Huan Li (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: