[SERVER-76813] Fix --use-system-icu Created: 03/May/23  Updated: 29/Oct/23  Resolved: 09/May/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 7.0.0-rc1

Type: Bug Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Mark Benvenuto
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
related to SERVER-70803 Initialize ICU USPrep code during sta... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Sprint: Security 2023-05-15
Participants:

 Description   

When using --use-system-icu, a cycle is created in the mongo initializers which causes mongod not to start.

Fix:

diff --git a/src/mongo/util/icu_init_stub.cpp b/src/mongo/util/icu_init_stub.cpp
index 70c641fdcc3..8f5aea136ba 100644
--- a/src/mongo/util/icu_init_stub.cpp
+++ b/src/mongo/util/icu_init_stub.cpp
@@ -36,7 +36,7 @@ namespace {
 
 // This initializer provides a no-op definition of the LoadICUData MONGO_INITIALIZER, for use when
 // the system version of ICU is used instead of the vendored version.
-MONGO_INITIALIZER(LoadICUData)(InitializerContext* context) {}
+MONGO_INITIALIZER_GENERAL(LoadICUData, (), ("BeginStartupOptionHandling"))(InitializerContext* context) {}
 
 }  // namespace
 }  // namespace mongo



 Comments   
Comment by Githook User [ 11/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76813 Fix --use-system-icu

(cherry picked from commit 5d7a362cae19ca03abfeda979b997eaf75f54e38)
Branch: v7.0
https://github.com/mongodb/mongo/commit/d3d081e8a84a556f5ad5c9a4c36356a7416f39ab

Comment by Githook User [ 09/May/23 ]

Author:

{'name': 'Mark Benvenuto', 'email': 'mark.benvenuto@mongodb.com', 'username': 'markbenvenuto'}

Message: SERVER-76813 Fix --use-system-icu
Branch: master
https://github.com/mongodb/mongo/commit/5d7a362cae19ca03abfeda979b997eaf75f54e38

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