[SERVER-67841] Build with the HAVE_REF_TRACK flag for WiredTiger to enable reference tracking in MongoDB testing Created: 07/Jul/22  Updated: 29/Oct/23  Resolved: 08/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Chenhao Qu Assignee: Sulabh Mahajan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on WT-9418 Introduce the ref track build option Closed
Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2022-07-25, Execution Team 2022-08-08, Execution Team 2022-08-22
Participants:

 Description   

WiredTiger has a feature called reference tracking to trace the recent history of page reference state transitions. It was only enabled in diagnostic build and in MongoDB debug build. We make the change in WT-9418 to introduce a build flag HAVE_REF_TRACK so that this feature can also be enabled in the production build. We'd like MongoDB to enable it in its production testing. In detail, at MongoDB side, we need to do the following:

  • Change Mongodb scons script to always build the debug build with the new flag.
  • Change Mongodb scons script to optionally build with the new flag in production build.
  • Build with the new flag in our testing for production build.
  • Ensure in the release build we are not building with the new flag.


 Comments   
Comment by Sulabh Mahajan [ 02/Aug/22 ]

So you could in the SConstruct, add a check if the --release flag is set and then turn the REF tracking on or off.

Easy, in that case, I could default REF tracking to ON, and switch it off for release builds or when specifically asked to do that.

Comment by Daniel Moody [ 02/Aug/22 ]

sulabh.mahajan@mongodb.com We have a --release flag which is used to indicate a release build, and I am not familiar with all the performance testing, but from what I can tell, the performance tests use the --release flag as well.

So you could in the SConstruct, add a check if the --release flag is set and then turn the REF tracking on or off.

Comment by Connie Chen [ 12/Jul/22 ]

We should try this locally once to see memory consumption before changing the production testing

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