[SERVER-47614] logv2_test LogV2Test/UserAssert fails when run with --verbose=v Created: 17/Apr/20  Updated: 29/Oct/23  Resolved: 21/Apr/20

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

Type: Bug Priority: Major - P3
Reporter: Billy Donahue Assignee: Henrik Edin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

$ T=build/dynamic_gcc_ninja/mongo/logv2/logv2_test
$ ninja -f build.ninja.dynamic_gcc $T
$ $T --verbose=v --suite=LogV2Test

Participants:

 Description   

logv2_test --verbose=v --suite=LogV2Test

{"t":{"$date":"2020-04-17T02:19:51.470Z"},"s":"I",  "c":"TEST",     "id":4680100, "ctx":"main","msg":"FAIL","attr":{"test":"UserAssert","type":"TestAssertionFailureException","error":"Expected lines.back() == ex.reason() (uasserting logUser assertion == uasserting log) @src/mongo/logv2/logv2_test.cpp:1600","extra":"........"}}

 The last log line we get here unexpectedly has the LOGV2_DEBUG Debug(1) severity message: "User assertion" tacked onto it, which comes from inside the body of uassertedWithLocation in util/assert_util.cpp.

Running without the verbose flag there is no failure.
SO maybe the test should temporarily stop debug instrumentation messages from being emitted while the test runs.



 Comments   
Comment by Githook User [ 01/May/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-47614 Fix logv2_test when running with increased verbosity.

(cherry picked from commit 3ebb641b1c0fb63243e801b966ccde1167fdada9)
Branch: v4.4
https://github.com/mongodb/mongo/commit/4fe4f1b7caa14dbdca5cfaff04a9e9841176684b

Comment by Githook User [ 21/Apr/20 ]

Author:

{'name': 'Henrik Edin', 'email': 'henrik.edin@mongodb.com', 'username': 'henrikedin'}

Message: SERVER-47614 Fix logv2_test when running with increased verbosity.
Branch: master
https://github.com/mongodb/mongo/commit/3ebb641b1c0fb63243e801b966ccde1167fdada9

Generated at Thu Feb 08 05:14:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.