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

Background index behaviour on a secondary

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: manual
    • Labels:
      None
    • # Replies:
      7
    • Last comment by Customer:
      false

      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  5 years, 17 weeks, 4 days ago
                  Date of 1st Reply: