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

Background index builds on the primary are built in the foreground

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical - P2 Critical - P2
    • 2.2.0-rc1
    • 2.2.0-rc0
    • None
    • None
    • ALL

    Description

      From primary log:

      Thu Jul 19 12:24:46 [conn2] info: indexing in foreground on this replica; was a background index build on the primary

      Error in logic,

      if (background && ((!theReplSet && cc().isSyncThread()) || (theReplSet && !theReplSet->isSecondary()))) {

      in pdfile.cpp should be something like:

      if (background && ((!theReplSet && cc().isSyncThread()) || 
          (theReplSet && !theReplSet->isPrimary() && !theReplSet->isSecondary()))) {

      Attachments

        Activity

          People

            Unassigned Unassigned
            kristina Kristina Chodorow (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: