summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVojislav Stojkovic <vojislav.stojkovic@mongodb.com>2023-05-11 05:50:13 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-11 06:28:39 +0000
commit0e87bdf088907690685f1a18cdc3faa7c6221f42 (patch)
tree1badff4919ae50e7f1a6f094734527bff1ce72a4
parentbbb51d48561a47e6dc6e6aec9abf3463c1b6acc3 (diff)
downloadmongo-0e87bdf088907690685f1a18cdc3faa7c6221f42.tar.gz
SERVER-76508 Disable latch analyzer in performance tests and production
-rw-r--r--etc/evergreen_yml_components/variants/atlas.yml2
-rw-r--r--etc/evergreen_yml_components/variants/ibm.yml9
-rw-r--r--etc/evergreen_yml_components/variants/misc_release.yml142
-rwxr-xr-xetc/system_perf.yml3
-rw-r--r--jstests/core/administrative/current_op/currentop_waiting_for_latch.js3
-rw-r--r--jstests/core/latch_analyzer.js2
6 files changed, 107 insertions, 54 deletions
diff --git a/etc/evergreen_yml_components/variants/atlas.yml b/etc/evergreen_yml_components/variants/atlas.yml
index f335d5eab51..34356a4d97f 100644
--- a/etc/evergreen_yml_components/variants/atlas.yml
+++ b/etc/evergreen_yml_components/variants/atlas.yml
@@ -18,10 +18,12 @@ buildvariants:
push_bucket: downloads.10gen.com
push_name: linux
push_arch: x86_64-enterprise-rhel70
+ test_flags: --excludeWithAnyTags=requires_latch_analyzer
compile_flags: >-
--ssl MONGO_DISTMOD=rhel70
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
diff --git a/etc/evergreen_yml_components/variants/ibm.yml b/etc/evergreen_yml_components/variants/ibm.yml
index c8bcf54b1fd..e6ae4f7f946 100644
--- a/etc/evergreen_yml_components/variants/ibm.yml
+++ b/etc/evergreen_yml_components/variants/ibm.yml
@@ -14,12 +14,14 @@ buildvariants:
additional_package_targets: >-
archive-mongocryptd
archive-mongocryptd-debug
+ test_flags: --excludeWithAnyTags=requires_latch_analyzer
# We need to compensate for SMT8 setting the cpu count very high and lower the amount of parallelism down
compile_flags: >-
--ssl
MONGO_DISTMOD=rhel81
-j$(echo "$(grep -c processor /proc/cpuinfo)/2" | bc)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
@@ -74,6 +76,7 @@ buildvariants:
MONGO_DISTMOD=rhel81
-j$(echo "$(grep -c processor /proc/cpuinfo)/2" | bc)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
tasks:
- name: compile_test_and_package_serial_TG
distros:
@@ -98,7 +101,8 @@ buildvariants:
-j3
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--linker=gold
- test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
@@ -153,12 +157,14 @@ buildvariants:
archive-mongocryptd
archive-mongocryptd-debug
release_buid: true
+ test_flags: --excludeWithAnyTags=requires_latch_analyzer
compile_flags: >-
--ssl
MONGO_DISTMOD=rhel83
-j3
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--linker=gold
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -213,6 +219,7 @@ buildvariants:
-j$(echo "$(grep -c processor /proc/cpuinfo)/2" | bc)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--linker=gold
+ --use-diagnostic-latches=off
tasks:
- name: compile_test_and_package_serial_TG
distros:
diff --git a/etc/evergreen_yml_components/variants/misc_release.yml b/etc/evergreen_yml_components/variants/misc_release.yml
index 4a10f2eed54..d93e40a7f94 100644
--- a/etc/evergreen_yml_components/variants/misc_release.yml
+++ b/etc/evergreen_yml_components/variants/misc_release.yml
@@ -8,7 +8,7 @@ buildvariants:
- amazon2-test
expansions:
test_flags: >-
- --excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,requires_external_data_source
+ --excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,requires_external_data_source,requires_latch_analyzer
push_path: linux
push_bucket: downloads.mongodb.org
push_name: linux
@@ -18,6 +18,7 @@ buildvariants:
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
multiversion_platform: amazon2
multiversion_edition: targeted
has_packages: true
@@ -73,7 +74,7 @@ buildvariants:
archive-mongocryptd-debug
# TODO BUILD-13887 should fix uses_pykmip incompatibility.
test_flags: >-
- --excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,uses_pykmip,requires_external_data_source
+ --excludeWithAnyTags=SERVER-34286,incompatible_with_amazon_linux,uses_pykmip,requires_external_data_source,requires_latch_analyzer
push_path: linux
push_bucket: downloads.10gen.com
push_name: linux
@@ -83,6 +84,7 @@ buildvariants:
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -140,7 +142,8 @@ buildvariants:
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: aarch64
@@ -201,11 +204,12 @@ buildvariants:
MONGO_DISTMOD=amazon2
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
# TODO BUILD-13887 should fix uses_pykmip incompatibility.
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source,requires_latch_analyzer
has_packages: true
multiversion_platform: amazon2
multiversion_edition: enterprise
@@ -311,8 +315,8 @@ buildvariants:
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: x86_64-amazon2022
- compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: x86_64
@@ -363,10 +367,10 @@ buildvariants:
push_bucket: downloads.10gen.com
push_name: linux
push_arch: x86_64-enterprise-amazon2022
- compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique"
# TODO BUILD-13887 should fix uses_pykmip incompatibility.
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source,requires_latch_analyzer
has_packages: true
multiversion_platform: amazon2022
multiversion_edition: enterprise
@@ -466,8 +470,8 @@ buildvariants:
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: aarch64-amazon2022
- compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: aarch64
@@ -519,10 +523,10 @@ buildvariants:
push_bucket: downloads.10gen.com
push_name: linux
push_arch: aarch64-enterprise-amazon2022
- compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ compile_flags: --ssl MONGO_DISTMOD=amazon2022 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique"
# TODO BUILD-13887 should fix uses_pykmip incompatibility.
- test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_amazon_linux,requires_ldap_pool,uses_pykmip,requires_v4_0,requires_external_data_source,requires_latch_analyzer
has_packages: true
multiversion_platform: amazon2022
multiversion_edition: enterprise
@@ -625,12 +629,13 @@ buildvariants:
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: x86_64-debian10
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
compile_flags: >-
--ssl
MONGO_DISTMOD=debian10
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
multiversion_platform: debian10
multiversion_edition: targeted
has_packages: true
@@ -694,7 +699,8 @@ buildvariants:
MONGO_DISTMOD=debian10
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
@@ -750,7 +756,8 @@ buildvariants:
MONGO_DISTMOD=debian11
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
multiversion_platform: debian11
multiversion_edition: targeted
has_packages: true
@@ -813,7 +820,8 @@ buildvariants:
--ssl MONGO_DISTMOD=debian11
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -864,7 +872,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel70
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
multiversion_platform: rhel70
multiversion_edition: targeted
has_packages: true
@@ -914,10 +923,12 @@ buildvariants:
run_on:
- rhel76-test
expansions:
+ test_flags: --excludeWithAnyTags=requires_latch_analyzer
compile_flags: >-
--ssl MONGO_DISTMOD=rhel70
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
compile_variant: rhel76_compile_rhel70
tasks:
- name: compile_and_archive_dist_test_then_package_TG
@@ -941,10 +952,11 @@ buildvariants:
--opt=on
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
tooltags: ""
build_mongoreplay: true
test_flags: >-
- --excludeWithAnyTags=requires_os_access
+ --excludeWithAnyTags=requires_os_access,requires_latch_analyzer
compile_variant: ubi8
tasks:
- name: compile_and_archive_dist_test_then_package_TG
@@ -971,7 +983,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel80
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
multiversion_platform: rhel80
multiversion_edition: targeted
has_packages: true
@@ -1035,7 +1048,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel80
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CFLAGS="-fno-gnu-unique"
@@ -1155,7 +1169,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel82
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: aarch64
@@ -1215,7 +1230,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel82
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
@@ -1272,8 +1288,8 @@ buildvariants:
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: x86_64-rhel90
- compile_flags: --ssl MONGO_DISTMOD=rhel90 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=rhel90 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
multiversion_platform: rhel90
multiversion_edition: targeted
has_packages: true
@@ -1328,8 +1344,8 @@ buildvariants:
push_bucket: downloads.10gen.com
push_name: linux
push_arch: x86_64-enterprise-rhel90
- compile_flags: --ssl MONGO_DISTMOD=rhel90 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=rhel90 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique"
multiversion_platform: rhel90
multiversion_edition: enterprise
@@ -1399,7 +1415,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel90
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: aarch64
@@ -1459,7 +1476,8 @@ buildvariants:
--ssl MONGO_DISTMOD=rhel90
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
@@ -1527,7 +1545,8 @@ buildvariants:
-j$(echo $(grep -c ^processor /proc/cpuinfo) / 2 | bc)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--linker=gold
- test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
multiversion_platform: suse12
multiversion_edition: targeted
has_packages: true
@@ -1595,7 +1614,8 @@ buildvariants:
-j$(echo $(grep -c ^processor /proc/cpuinfo) / 2 | bc)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
--linker=gold
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -1653,7 +1673,8 @@ buildvariants:
MONGO_DISTMOD=suse15
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -1702,7 +1723,8 @@ buildvariants:
MONGO_DISTMOD=suse15
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
multiversion_platform: suse15
multiversion_edition: targeted
has_packages: true
@@ -1760,9 +1782,10 @@ buildvariants:
MONGO_DISTMOD=ubuntu1804
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
multiversion_platform: ubuntu1804
multiversion_edition: targeted
- test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source
+ test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager.py
packager_arch: x86_64
@@ -1830,13 +1853,14 @@ buildvariants:
MONGO_DISTMOD=ubuntu1804
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
multiversion_platform: ubuntu1804
multiversion_edition: enterprise
- test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source
+ test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source,requires_latch_analyzer
has_packages: true
packager_script: packager_enterprise.py
packager_arch: x86_64
@@ -1905,11 +1929,12 @@ buildvariants:
MONGO_DISTMOD=ubuntu1804
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic
-Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
- test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source,requires_increased_memlock_limits
+ test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
resmoke_jobs_max: 4 # Avoid starting too many mongod's on ARM test servers
has_packages: true
packager_script: packager_enterprise.py
@@ -1965,7 +1990,8 @@ buildvariants:
MONGO_DISTMOD=ubuntu1804
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_ocsp_stapling,requires_external_data_source,requires_latch_analyzer
resmoke_jobs_max: 8 # Avoid starting too many mongod's on ARM test servers
has_packages: true
packager_script: packager.py
@@ -2003,7 +2029,8 @@ buildvariants:
MONGO_DISTMOD=ubuntu2204
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_increased_memlock_limits,requires_latch_analyzer
multiversion_platform: ubuntu2204
multiversion_edition: targeted
has_packages: true
@@ -2059,7 +2086,8 @@ buildvariants:
MONGO_DISTMOD=ubuntu2004
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
multiversion_platform: ubuntu2004
multiversion_edition: targeted
has_packages: true
@@ -2122,7 +2150,8 @@ buildvariants:
--ssl MONGO_DISTMOD=ubuntu2004
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -2188,7 +2217,8 @@ buildvariants:
MONGO_DISTMOD=ubuntu2204
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -2253,7 +2283,8 @@ buildvariants:
--ssl MONGO_DISTMOD=ubuntu2004
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: >-
SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique"
CCFLAGS="-fno-gnu-unique"
@@ -2311,7 +2342,8 @@ buildvariants:
MONGO_DISTMOD=ubuntu2004
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
resmoke_jobs_max: 8 # Avoid starting too many mongod's on ARM test servers
has_packages: true
packager_script: packager.py
@@ -2348,8 +2380,8 @@ buildvariants:
push_bucket: downloads.10gen.com
push_name: linux
push_arch: aarch64-enterprise-ubuntu2204
- compile_flags: --ssl MONGO_DISTMOD=ubuntu2204 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=ubuntu2204 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
crypt_task_compile_flags: SHLINKFLAGS_EXTRA="-Wl,-Bsymbolic -Wl,--no-gnu-unique" CCFLAGS="-fno-gnu-unique"
resmoke_jobs_max: 4 # Avoid starting too many mongod's on ARM test servers
has_packages: true
@@ -2403,8 +2435,8 @@ buildvariants:
push_bucket: downloads.mongodb.org
push_name: linux
push_arch: aarch64-ubuntu2204
- compile_flags: --ssl MONGO_DISTMOD=ubuntu2204 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
- test_flags: --excludeWithAnyTags=requires_external_data_source
+ compile_flags: --ssl MONGO_DISTMOD=ubuntu2204 -j$(grep -c ^processor /proc/cpuinfo) --variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars --use-diagnostic-latches=off
+ test_flags: --excludeWithAnyTags=requires_external_data_source,requires_latch_analyzer
resmoke_jobs_max: 8 # Avoid starting too many mongod's on ARM test servers
has_packages: true
packager_script: packager.py
@@ -2447,12 +2479,13 @@ buildvariants:
MONGO_DISTMOD=windows
-j$(bc <<< "$(grep -c '^processor' /proc/cpuinfo) / 1.5")
--win-version-min=win10
+ --use-diagnostic-latches=off
num_scons_link_jobs_available: 0.25
python: '/cygdrive/c/python/python37/python.exe'
ext: zip
scons_cache_scope: shared
large_distro_name: windows-vsCurrent-large
- test_flags: &windows_common_test_excludes --excludeWithAnyTags=incompatible_with_windows_tls,requires_external_data_source
+ test_flags: &windows_common_test_excludes --excludeWithAnyTags=incompatible_with_windows_tls,requires_external_data_source,requires_latch_analyzer
compile_variant: windows
tasks:
- name: compile_test_and_package_serial_no_unittests_TG
@@ -2512,6 +2545,7 @@ buildvariants:
LIBPATH="c:/sasl/lib"
-j$(bc <<< "$(grep -c '^processor' /proc/cpuinfo) / 1.5")
--win-version-min=win10
+ --use-diagnostic-latches=off
num_scons_link_jobs_available: 0.25
python: '/cygdrive/c/python/python37/python.exe'
ext: zip
@@ -2575,7 +2609,7 @@ buildvariants:
run_on:
- macos-1100
expansions:
- test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_external_data_source,requires_latch_analyzer
push_path: osx
push_bucket: downloads.mongodb.org
push_name: macos
@@ -2586,6 +2620,7 @@ buildvariants:
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx.vars
+ --use-diagnostic-latches=off
resmoke_jobs_max: 6
compile_variant: macos
tasks:
@@ -2628,7 +2663,7 @@ buildvariants:
run_on:
- macos-1100-arm64
expansions:
- test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_external_data_source,requires_latch_analyzer
push_path: osx
push_bucket: downloads.mongodb.org
push_name: macos
@@ -2639,6 +2674,7 @@ buildvariants:
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx_arm.vars
+ --use-diagnostic-latches=off
resmoke_jobs_max: 6
compile_variant: macos-arm64
tasks:
@@ -2683,7 +2719,7 @@ buildvariants:
run_on:
- macos-1100
expansions:
- test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_gcm,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_gcm,requires_external_data_source,requires_latch_analyzer
additional_package_targets: >-
archive-mongocryptd
archive-mongocryptd-debug
@@ -2699,6 +2735,7 @@ buildvariants:
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx.vars
+ --use-diagnostic-latches=off
resmoke_jobs_max: 6
compile_variant: enterprise-macos
tasks:
@@ -2727,7 +2764,7 @@ buildvariants:
run_on:
- macos-1100-arm64
expansions:
- test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_gcm,requires_external_data_source
+ test_flags: --excludeWithAnyTags=incompatible_with_macos,requires_gcm,requires_external_data_source,requires_latch_analyzer
additional_package_targets: >-
archive-mongocryptd
archive-mongocryptd-debug
@@ -2743,6 +2780,7 @@ buildvariants:
-j$(sysctl -n hw.logicalcpu)
--libc++
--variables-files=etc/scons/xcode_macosx_arm.vars
+ --use-diagnostic-latches=off
resmoke_jobs_max: 6
compile_variant: enterprise-macos-arm64
tasks:
@@ -2771,12 +2809,14 @@ buildvariants:
- rhel82-arm64-large
stepback: false
expansions:
+ test_flags: --excludeWithAnyTags=requires_latch_analyzer
compile_flags: >-
--ssl
--dbg=on
MONGO_DISTMOD=rhel80
-j$(grep -c ^processor /proc/cpuinfo)
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
--link-model=dynamic
ENABLE_GRPC_BUILD=1
--use-libunwind=off
diff --git a/etc/system_perf.yml b/etc/system_perf.yml
index 41b5409a8d1..e0491590dbe 100755
--- a/etc/system_perf.yml
+++ b/etc/system_perf.yml
@@ -1547,6 +1547,7 @@ buildvariants:
-j$(grep -c ^processor /proc/cpuinfo)
--release
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
install-mongocryptd
run_on:
- "amazon2-xlarge"
@@ -1579,6 +1580,7 @@ buildvariants:
-j$(grep -c ^processor /proc/cpuinfo)
--release
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
--allocator=system
--enable-free-mon=off
--enterprise-features=fle,search
@@ -1740,6 +1742,7 @@ buildvariants:
-j$(grep -c ^processor /proc/cpuinfo)
--release
--variables-files=etc/scons/mongodbtoolchain_stable_gcc.vars
+ --use-diagnostic-latches=off
compile_variant: -rhel70
run_on:
- rhel70-large
diff --git a/jstests/core/administrative/current_op/currentop_waiting_for_latch.js b/jstests/core/administrative/current_op/currentop_waiting_for_latch.js
index b02f219fe02..9360b8868f2 100644
--- a/jstests/core/administrative/current_op/currentop_waiting_for_latch.js
+++ b/jstests/core/administrative/current_op/currentop_waiting_for_latch.js
@@ -7,7 +7,8 @@
* not_allowed_with_security_token,
* assumes_read_concern_unchanged,
* assumes_read_preference_unchanged,
- * no_selinux
+ * no_selinux,
+ * requires_latch_analyzer
* ]
*/
(function() {
diff --git a/jstests/core/latch_analyzer.js b/jstests/core/latch_analyzer.js
index 73aa652c6c1..96c20d9c320 100644
--- a/jstests/core/latch_analyzer.js
+++ b/jstests/core/latch_analyzer.js
@@ -1,7 +1,7 @@
/**
* Verify that the LatchAnalyzer is working to expectations
*
- * @tags: [multiversion_incompatible, no_selinux]
+ * @tags: [multiversion_incompatible, no_selinux, requires_latch_analyzer]
*/
(function() {