[SERVER-44742] inconsistent checks for two phase index build support across C++ and JS Created: 20/Nov/19  Updated: 29/Oct/23  Resolved: 22/Nov/19

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.3.3

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-43692 enable two phase index builds by default Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2019-12-02
Participants:

 Description   

JS tests currently use the IndexBuildTest.supportsTwoPhaseIndexBuild() helper function, introduced in SERVER-44439, to check for two phase index build support. This helper function checks the server parameter enableTwoPhaseIndexBuild. However, the internal server code check uses IndexBuildsCoordinator::supportsTwoPhaseIndexBuild(), which is dependent on both the server parameter and the current FCV setting. It would be less confusing if we could unify these checks. One possibility might be to expose the server setting through a new field in the serverStatus output



 Comments   
Comment by Githook User [ 22/Nov/19 ]

Author:

{'name': 'Benety Goh', 'username': 'benety', 'email': 'benety@mongodb.com'}

Message: SERVER-44742 add supportsTwoPhaseIndexBuild to storageEngine server status section
Branch: master
https://github.com/mongodb/mongo/commit/9c3d82ef7413d01173bd42983253308b6611fc04

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