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

Documents with secondary unique indexed fields may not replicate properly on KV storage engines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.8
    • Fix Version/s: 2.8.0-rc0
    • Component/s: Indexing, Replication
    • Labels:
      None
    • Operating System:
      ALL
    • Linked BF Score:
      0

      Description

      When replicating document ops with doc-level-locking storage engines, we may batch apply operations in parallel within the same collection. If unique secondary indexes exist (that is, unique indexes other than id), their unique constraints may be temporarily violated during the application of a batch of ops. If this happens, the secondary node would detect this and shut down before data corruption resulted.
      In order to fix this, we need to disable unique key checking while applying ops on secondaries.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: