Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-342

Background index behaviour on a secondary

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • Server_Docs_20231030
    • None
    • manual
    • None

    Description

      It looks like the information on building background indexes on a secondary may be based on an incorrect commit comment for SERVER-2771:
      http://www.mongodb.org/display/DOCS/Building+indexes+with+replica+sets#Buildingindexeswithreplicasets-Version2.1.0andlater

      The comment from Kristina says:

      Index builds will now happen in the background on secondaries if they happen in the background on the primary. This means that reads can continue while the index builds. However, replication will block until the index build is complete.

      .. but the preceding commit actually appears to change the background index on the primary to a foreground index with the log message:

      info: indexing in foreground on this replica; was a background index build on the primary

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 30 weeks, 1 day ago