Background index builds on the primary are built in the foreground

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • 2.2.0-rc1
    • Affects Version/s: 2.2.0-rc0
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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()))) {
      

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

              Created:
              Updated:
              Resolved: