[SERVER-62229] Fix invariant when applying index build entries while recoverFromOplogAsStandalone=true Created: 22/Dec/21  Updated: 29/Oct/23  Resolved: 08/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.4.14, 5.0.8, 5.3.0

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

Issue Links:
Backports
Depends
Related
is related to SERVER-49530 fix final index build phase for oplog... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.0, v4.4
Sprint: Execution Team 2022-01-24, Execution Team 2022-02-07, Execution Team 2022-02-21
Participants:

 Description   

This invariant expects canAcceptWritesFor to return false during startup recovery. However, if we are recovering from the oplog as a standalone (like during the backup restore procedure), this will fail.

We should account for this case in the invariant.



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

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-62229 Allow applying index build abort entry when in recoverFromOplogAsStandalone mode

(cherry picked from commit bb6c77de8123856e9eb6bcc4f47479d9e37ddbd7)
Branch: v4.4
https://github.com/mongodb/mongo/commit/319d8d8145fb5893ab3bf5d077730226f3f2af7c

Comment by Githook User [ 06/Apr/22 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-62229 Allow applying index build abort entry when in recoverFromOplogAsStandalone mode

(cherry picked from commit bb6c77de8123856e9eb6bcc4f47479d9e37ddbd7)
Branch: v5.0
https://github.com/mongodb/mongo/commit/53cfd57797aa9a7867c469d425f35f18b8324a78

Comment by Githook User [ 08/Feb/22 ]

Author:

{'name': 'Pavi Vetriselvan', 'email': 'pavithra.vetriselvan@mongodb.com', 'username': 'pvselvan'}

Message: SERVER-62229 Allow applying index build abort entry when in recoverFromOplogAsStandalone mode
Branch: master
https://github.com/mongodb/mongo/commit/bb6c77de8123856e9eb6bcc4f47479d9e37ddbd7

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