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

mongoD becomes SECONDARY before finishing index builds during initial sync

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.10
    • Component/s: Replication
    • Labels:
      None
    • ALL
    • Hide

      Stop a secondary member in this replica set. Wipe all data in dbpath and restart. The replica will start initial sync, and somewhere in the middle of the index build stage the replica will transition to SECONDARY mode before the index build is finished.

      Show
      Stop a secondary member in this replica set. Wipe all data in dbpath and restart. The replica will start initial sync, and somewhere in the middle of the index build stage the replica will transition to SECONDARY mode before the index build is finished.

      When performing an initial sync on one of our sharded clusters, the replica transitions into SECONDARY mode before the background index builds are complete. This causes queries to run very slowly against this replica as the indexes are not complete.

      I have a log of this replica during the sync, but first wanted to ask how we should scrub before attaching here since it is our first time submitting a public ticket.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            dai@foursquare.com Dai Shi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: