[SERVER-6522] Background index builds on the primary are built in the foreground Created: 19/Jul/12  Updated: 11/Jul/16  Resolved: 19/Jul/12

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 2.2.0-rc0
Fix Version/s: 2.2.0-rc1

Type: Bug Priority: Critical - P2
Reporter: Kristina Chodorow (Inactive) Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

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



 Comments   
Comment by Kristina Chodorow (Inactive) [ 19/Jul/12 ]

Removed.

Comment by auto [ 19/Jul/12 ]

Author:

{u'date': u'2012-07-19T09:50:11-07:00', u'email': u'kristina@10gen.com', u'name': u'Kristina'}

Message: Revert "Allow background indexes while in secondary state" SERVER-6522

This reverts commit 72dcc0b296306fc432f52ada8eedf4814c791b68.
Branch: master
https://github.com/mongodb/mongo/commit/7f3b1bc51810a76a75fefbe0db67ced933a40985

Comment by Kristina Chodorow (Inactive) [ 19/Jul/12 ]

Or we could remove this logic altogether for 2.2.

Generated at Thu Feb 08 03:11:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.