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

Tenant oplog applier may createIndex on non-empty collections

    XMLWordPrintable

    Details

    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.9
    • Sprint:
      Repl 2021-05-17
    • Linked BF Score:
      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

            Assignee:
            lingzhi.deng Lingzhi Deng
            Reporter:
            lingzhi.deng Lingzhi Deng
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: