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

Initial sync can fail when syncing a capped collection if the capped collection rolls over on the sync source

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying, Replication
    • None
    • Environment:
    • Replication
    • ALL

      There is a problem with an initial sync. Several attempts have failed with the following error:
      CappedPositionLost: CollectionScan died due to position in capped collection being deleted

      The capped collections size on which the errors are occured: 30 - 100 GB
      On our workload the capped collections "capacity" (the time before each document is deleted) varies between 24 and 60 hours.

      Here are some more detailed info about the collections:

      Number of CappedPositionLost errors, collection name, capped size, capacity
      6 DB1.collection1 - 40G - 2.46week
      3 DB1.collection14 - 37G - min 56h
      3 DB1.collection2 - 30G - min 36h
      9 DB1.collection9 - 100G - min 24h

      The logs for the 7 failed attempts to perform the initial sync are attached.

      Currently there is only one alive instance is left in the replica set on our production system. Please help us to bring the replica up.

        1. mongo_initial_sync_20
          136 kB
          Sergey
        2. test.tar.gz
          1.89 MB
          Sergey

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            plsfixmymongo Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated: