[SERVER-36350] Missing initializer ServiceContext for unittest Created: 30/Jul/18  Updated: 27/Oct/23  Resolved: 30/Jul/18

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Henrik Edin
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:

 Description   

If I build lock_manager_test with the default link-model (not dynamic), with opt=off and dbg=on, it fails to start with this error:
Failed global initialization: BadValue Initializer QueryableWtEngineInit depends on missing initializer ServiceContext

(I was trying to avoid the trilemma, by using object linking.)
I think this error has come about due to the recent structure changes regarding ServiceContext.



 Comments   
Comment by Eric Milkie [ 30/Jul/18 ]

This was my error; I needed to pull from the enterprise module again to line it up.

Comment by Henrik Edin [ 30/Jul/18 ]

milkie Did you take the corresponding commit in the enterprise repo? https://github.com/10gen/mongo-enterprise-modules/commit/f9e131ad70d3103513e777cb2125daa1daae23ec

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