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

Inserts and updates to replicated capped collections must be single threaded

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc4
    • Fix Version/s: 3.0.8, 3.2.0-rc5
    • Component/s: Storage
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      QuInt D (12/14/15)
    • Linked BF Score:
      0

      Description

      Similar to SERVER-21483, which limited concurrency on secondaries for capped collections, the same needs to happen on the primary. This will prevent the primary from running with more concurrency than the secondary.

      Additionally we need to do this with inserts for correctness to ensure that the order of the capped collection matches the order of the insert entrees in the oplog.

      Original title and description:
      sys-perf regression: secondary could not keep with with insert_capped with WT (core_workloads_WT)

      with insert_capped test, secondary cannot keep up with primary. This is introduced somewhere between c76b4ff to 0730c65,

      • manually verified this issue.
      • same workload insert into non-capped col does not show this issue.
      • this happens with vector insert with 8+ threads
      • primary and secondary show big difference in insert rate 150k vs 28k.
      • the growth of replication lag is almost linear vs time.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: