Tenant oplog applier may createIndex on non-empty collections

XMLWordPrintableJSON

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

      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.

            Assignee:
            Lingzhi Deng
            Reporter:
            Lingzhi Deng
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: