[SERVER-63908] Fix and test partial index build handling in FCBIS Created: 23/Feb/22  Updated: 29/Oct/23  Resolved: 01/Mar/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0.0-rc0, 5.3.0-rc3

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

Issue Links:
Backports
Gantt Dependency
has to be done before SERVER-63233 Incorrect fastcount after FCBIS Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v5.3, v5.2
Sprint: Repl 2022-03-07
Participants:

 Description   

When FCBIS runs there are several partial states 2-phase index builds may be in.

1) Index build has started in checkpoint but not completed (no oplog entries)

2) Index build has started in checkpoint and completes in recovery (commitIndexBuild only)

3) Index build starts in recovery but does not finish (startIndexBuild only)

4) Index build starts and ends in recovery (startIndexBuild + commitIndexBuild)

Currently FCBIS handles only cases 1 and 4 correctly.



 Comments   
Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-63908 Allow stopping of index builds during initial sync

(cherry picked from commit 6b31c081a99aaf31402be98363b85647689070c9)
Branch: v5.3
https://github.com/mongodb/mongo/commit/3e81e8d185306a6d7e322b2a8b60103259a5f6b1

Comment by Githook User [ 03/Mar/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-63908 Fix and test in-progress index build scenarios for file copy based initial sync.

(cherry picked from commit dc4fbce0b64cf26947be7ec89b4a6be9a30997e3)
Branch: v5.3
https://github.com/10gen/mongo-enterprise-modules/commit/3304f59be4ba1205c5c17ec2f70e8cfd538f6af0

Comment by Githook User [ 01/Mar/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-63908 Allow stopping of index builds during initial sync
Branch: master
https://github.com/mongodb/mongo/commit/6b31c081a99aaf31402be98363b85647689070c9

Comment by Githook User [ 01/Mar/22 ]

Author:

{'name': 'Matthew Russotto', 'email': 'matthew.russotto@mongodb.com', 'username': 'mtrussotto'}

Message: SERVER-63908 Fix and test in-progress index build scenarios for file copy based initial sync.
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/dc4fbce0b64cf26947be7ec89b4a6be9a30997e3

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