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

Tenant oplog applier may createIndex on non-empty collections

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL
    • v4.9
    • Repl 2021-05-17
    • 55

    Description

      If we have this sequence on the donor:
      1. createCollection foo
      2. createIndex unique index {x: 1} on foo
      3. dropIndex
      4. insert some documents to foo that violate uniqueness on x
      ------
      After cloning, the recipient could clone documents in foo without index idx. And in the tenant oplog application phase, the tenant oplog applier would apply 2. and fail this invariant because during tenant oplog application we relax constraints.

      Attachments

        Activity

          People

            lingzhi.deng@mongodb.com Lingzhi Deng
            lingzhi.deng@mongodb.com Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: