...
Our thread sanitizer caught this issue. I cannot easily reproduce, but it does look like an obvious potential problem.
xgen-internal-githook commented on Fri, 8 Mar 2024 15:33:32 +0000: Author: {'name': 'erinzhu001', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'} Message: SERVER-87612: Query Stats Backport to 7.0 Batch #9 (#19673) SERVER-87612 Query Stats Backport to 7.0 Batch #9 backports SERVER-84261 Avoid unnecessary copies in FindCmdShape constructor SERVER-81486 Extract `CmdWithLetShape::makeDummyExpCtx()` as an `ExpressionContext` constructor SERVER-84300 Avoid reading the clocks to report query stats (#17689) SERVER-84446: Fix re-parsing of $geometry without specified type. (#17800) SERVER-83946 Enable query stats for the mutational fuzzers (#17851) SERVER-84159 Don't wrap expression constant representative values in $const (#17672) SERVER-84632 Absorb query stats not enabled errors in RunQueryStats hook setup (#17929) SERVER-84566 Fix re-parsing errors for complex geometry types (#17883) SERVER-85190 Query stats store max size should be an atomic (#18034) SERVER-84630: Default to $geometry point for $geoNear representative shape. (#17918) SERVER-84298 Fix memory accounting for querystats and add tests (#18000) SERVER-85485: Fix serialization of legacy geo expressions. (#18266) SERVER-84529 Sort readPreference tags in query shapes (#18151) SERVER-83926 Do not include mongos info in query stats' client metadata SERVER-85532: fix queryStats for invalid $hint syntax (#18225) SERVER-85374 Don't collect query stats for internal clients (#18219) SERVER-85719: Cleanup default parameters to serialize() calls. (#18385) SERVER-85376: Fix accumulator re-parsing with arrays SERVER-85719: Cleanup default parameters in serialize() calls. SERVER-85717 Shapify readConcern's 'atClusterTime' parameter (#18646) SERVER-86246: Include involved namespaces in AggCmd query shape size. (#18722) SERVER-86749 RunQueryStats hook should ignore all query stats disabl… (#19074)" SERVER-86654: Fix $regex $options re-parsing SERVER-84730 It's unsafe to reuse OpCtx for multiple operations when queryStats is concurrently disabled GitOrigin-RevId: 292accc379aa392d031b84d517eca462151d896c Branch: v7.0 https://github.com/mongodb/mongo/commit/22d80c8376d378ab15705333e19e0a4b58c7a7e1 xgen-internal-githook commented on Tue, 16 Jan 2024 17:10:04 +0000: Author: {'name': 'Charlie Swanson', 'email': 'charlie.swanson@mongodb.com', 'username': 'cswanson310'} Message: SERVER-85190 Query stats store max size should be an atomic (#18034) GitOrigin-RevId: 571b6869aa9f6ab0daa325abbbd84babddec88ac Branch: master https://github.com/mongodb/mongo/commit/9df19a0617cc80e97fd133fe238fb6167cde1a0e