[SERVER-44654] allow unique index builds to continue running on stepdown Created: 15/Nov/19  Updated: 29/Oct/23  Resolved: 05/Mar/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.4.0-rc0, 4.7.0

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Louis Williams
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-45852 Two-phase index build constraints sho... Closed
related to SERVER-45988 add IndexBuildAborted to list of acce... Closed
is related to SERVER-44397 index build continues to enforce cons... Closed
is related to SERVER-45351 Newly-elected primaries can commit in... Closed
is related to SERVER-44186 allow index builds to continue runnin... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-03-09
Participants:
Linked BF Score: 18

 Description   

In SERVER-44186, we added support for allow two phase index builds to continue running on stepdown. The responsibility for completing the index build, which can be observed in the oplog by the presence of the commitIndexBuild oplog entry, will fall on the new primary.

However, since unique index builds have constraints that are set up at the beginning of the build, it was necessary, in SERVER-44397, to temporarily disable failover support, which means unique index builds are aborted on stepdown currently.

In this ticket, we will look into re-enabling failover support for unique indexes.



 Comments   
Comment by Githook User [ 06/Mar/20 ]

Author:

{'username': 'louiswilliams', 'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-44654 Allow unique, two-phase index builds to continue running on stepdown

(cherry picked from commit dd501718bbdd24fad2190344be26234ef42a57d4)
Branch: v4.4
https://github.com/mongodb/mongo/commit/bf3d1489fd43c59cb304ed5a52965b2030d8bcf8

Comment by Githook User [ 05/Mar/20 ]

Author:

{'username': 'louiswilliams', 'name': 'Louis Williams', 'email': 'louis.williams@mongodb.com'}

Message: SERVER-44654 Allow unique, two-phase index builds to continue running on stepdown
Branch: master
https://github.com/mongodb/mongo/commit/dd501718bbdd24fad2190344be26234ef42a57d4

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