[SERVER-62173] Applying dropIndexes oplog entry can get BackgroundOperationInProgressForNamespace if FCV not upgraded Created: 17/Dec/21  Updated: 29/Oct/23  Resolved: 05/Jan/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0, 5.2.0-rc5

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-49866 Remove TempRelease Closed
related to SERVER-59399 Allow dropping an index during separa... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.2
Sprint: Execution Team 2022-01-10
Participants:
Linked BF Score: 155

 Description   

SERVER-49866 added an invariant that if we get BackgroundOperationInProgressForNamespace applying an oplog entry, the node must be in initial sync. After SERVER-59399 this is true since we no longer assert that there are no index builds in progress on a collection in order to drop a different index on that collection. However, if the FCV is not upgraded, we actually still throw this assertion. Thus, if the FCV is not fully upgraded, attempting to apply a dropIndexes oplog entry in steady state replication can result in BackgroundOperationInProgressForNamespace if there is an active index build in progress on that collection.



 Comments   
Comment by Githook User [ 06/Jan/22 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-62173 Wait for no index builds to be in progress on BackgroundOperationInProgressForNamespace during steady state replication with FCV less than 5.2

(cherry picked from commit f7ab9b6b8825cb09ce92ed4797b0ee75a49b5e22)
Branch: v5.2
https://github.com/mongodb/mongo/commit/970c93880474dd811a42dd4e08c899db9c67a973

Comment by Githook User [ 04/Jan/22 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-62173 Wait for no index builds to be in progress on BackgroundOperationInProgressForNamespace during steady state replication with FCV less than 5.2
Branch: master
https://github.com/mongodb/mongo/commit/f7ab9b6b8825cb09ce92ed4797b0ee75a49b5e22

Generated at Thu Feb 08 05:54:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.