[SERVER-78469] The CollectionMarkersTest/SamplingAutoYieldingWorks unit-test fails when run locally on the dev workstation Created: 27/Jun/23  Updated: 29/Oct/23  Resolved: 28/Jun/23

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

Type: Bug Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Jordi Olivares Provencio
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution EMEA Team 2023-07-10
Participants:
Linked BF Score: 42

 Description   

Build the server with --dbg=on --opt=off, for example:

buildscripts/scons.py -j256 --ssl --build-tools=next --variables-files=etc/scons/developer_versions.vars --variables-files=etc/scons/mongodbtoolchain_stable_clang.vars CCACHE=ccache ICECC=icecc VARIANT_DIR=ninja DESTDIR=build/install --link-model=dynamic --dbg=on --opt=off --use-libunwind=off LINKFLAGS=-rdynamic --ninja generate-ninja
 
ninja -j256 ./build/install/bin/db_storage_test

Then run the CollectionMarkersTest/SamplingAutoYieldingWorks unit-test:

./build/install/bin/db_storage_test --suite CollectionMarkersTest

The test will fail with:

2023-06-27T13:19:45.220Z I  TEST     [main] Totals {"totals":{"name":"TOTALS","tests":8,"fails":2,"asserts":0,"time":{"durationMillis":4889},"failures":[{"test":"ScanningAutoYieldingWorks","type":"TestAssertionFailureException","error":"Expected CurOp::get(opCtx.get())->numYields() == kNumElements / internalQueryExecYieldIterations.load() (6 == 5) @src/mongo/db/storage/collection_truncate_markers_test.cpp:500"}]}}
2023-06-27T13:19:45.221Z I  TEST     [main] Test Failed {"testName":"CollectionMarkersTest/ScanningAutoYieldingWorks","exception":"TestAssertionFailureException","error":"Expected CurOp::get(opCtx.get())->numYields() == kNumElements / internalQueryExecYieldIterations.load() (6 == 5) @src/mongo/db/storage/collection_truncate_markers_test.cpp:500"}
2023-06-27T13:19:45.221Z I  TEST     [main] Test Failed {"testName":"CollectionMarkersTest/SamplingAutoYieldingWorks","exception":"TestAssertionFailureException","error":"Expected CurOp::get(opCtx.get())->numYields() == kNumElementsToSample / internalQueryExecYieldIterations.load() (6 == 3) @src/mongo/db/storage/collection_truncate_markers_test.cpp:562"}
2023-06-27T13:19:45.222Z I  TEST     [main] FAILURE {"failedTestsCount":2,"failedSuitesCount":1,"failedTests":["CollectionMarkersTest/ScanningAutoYieldingWorks","CollectionMarkersTest/SamplingAutoYieldingWorks"]}



 Comments   
Comment by Githook User [ 03/Jul/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-78469 Fix truncate markers test in debug builds
Branch: EVG-17874-taskgen-test
https://github.com/mongodb/mongo/commit/fec9a7e7833d648e73174d64072ee4e94f738fcd

Comment by Githook User [ 28/Jun/23 ]

Author:

{'name': 'Jordi Olivares Provencio', 'email': 'jordi.olivares-provencio@mongodb.com', 'username': 'jordiolivares'}

Message: SERVER-78469 Fix truncate markers test in debug builds
Branch: master
https://github.com/mongodb/mongo/commit/fec9a7e7833d648e73174d64072ee4e94f738fcd

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