[SERVER-47599] Index builder should vote for ready to commit after first drain phase. Created: 16/Apr/20  Updated: 29/Oct/23  Resolved: 16/Apr/20

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

Type: Task Priority: Major - P3
Reporter: Suganthi Mani Assignee: Suganthi Mani
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-04-20
Participants:

 Description   

Currently, index builder votes for ready to commit after second drain phase. Now that first drain phase and second phase got split into 2 different methods by SERVER-39458. And, SERVER-46560 has unified the code path for single phase & 2 phase index builds, it's good to move _signalPrimaryForCommitReadiness(voting logic) method after _insertKeysFromSideTablesWithoutBlockingWrites(first drain phase).
It should also make the behavior consistent with the simultaneous index build design doc.



 Comments   
Comment by Githook User [ 17/Apr/20 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-47599 Index builder votes for ready to commit after first drain phase.

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

Comment by Githook User [ 16/Apr/20 ]

Author:

{'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}

Message: SERVER-47599 Index builder votes for ready to commit after first drain phase.
Branch: master
https://github.com/mongodb/mongo/commit/fb3b957b4379332fe21cbf156a832ee935cc36ca

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