[SERVER-47942] IndexBuildsCoordinator::_startIndexBuildForRecovery() needs to set the build protocol on the index build setup options Created: 04/May/20  Updated: 29/Oct/23  Resolved: 05/May/20

Status: Closed
Project: Core Server
Component/s: Index Maintenance
Affects Version/s: None
Fix Version/s: 4.4.0-rc4, 4.7.0

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

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.4
Sprint: Execution Team 2020-05-18
Participants:
Linked BF Score: 20

 Description   

The _startIndexBuildForRecovery() function does not set the index build protocol appropriately here.

Consequences can arise because of this issue, namely with rollback as we've seen in a build failure.

  • Start an index build via _startIndexBuildForRecovery (originally a two-phase index build, but the protocol is set to kSinglePhase as that's the default value).
  • Abort the index build due to rollback.
  • Rollback will rebuild any required indexes, in this case, it builds our index above using the single-phase protocol, which is incorrect.


 Comments   
Comment by Githook User [ 05/May/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-47942 IndexBuildsCoordinator::_startIndexBuildForRecovery() sets the index build protocol appropriately

(cherry picked from commit f46153e37ed956b5d9bcd9b61750b3e158754154)
Branch: v4.4
https://github.com/mongodb/mongo/commit/69c0dd4197827f958ea5da082d5526ec2fa74026

Comment by Githook User [ 05/May/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-47942 IndexBuildsCoordinator::_startIndexBuildForRecovery() sets the index build protocol appropriately
Branch: master
https://github.com/mongodb/mongo/commit/f46153e37ed956b5d9bcd9b61750b3e158754154

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