Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-47614

logv2_test LogV2Test/UserAssert fails when run with --verbose=v

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

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

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

      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.

            Assignee:
            henrik.edin@mongodb.com Henrik Edin
            Reporter:
            billy.donahue@mongodb.com Billy Donahue
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: