[SERVER-57155] Disable 'traceExceptions' in generational fuzzer suites Created: 24/May/21  Updated: 29/Oct/23  Resolved: 16/Aug/21

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

Type: Improvement Priority: Major - P3
Reporter: Charlie Swanson Assignee: Alice Doherty
Resolution: Fixed Votes: 0
Labels: greenerbuild, neweng, quick-tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File quieter_fuzzer.patch    
Backwards Compatibility: Fully Compatible
Sprint: Query Optimization 2021-07-12, Query Optimization 2021-07-26, Query Optimization 2021-08-09, QO 2021-08-23
Participants:

 Description   

The generational fuzzers are known to generate a lot of queries which produce errors. In these cases, the logs will include a backtrace for the failed query which isn't all that useful and can be distracting and often erroneously extracted from the logs to indicate the reason for failure. It turns out this behavior is configurable via this 'traceExecptions' parameter:

doassert = function(msg, obj) {
    // eval if msg is a function
    if (typeof (msg) == "function")
        msg = msg();
 
    if (typeof (msg) == "object")
        msg = tojson(msg);
 
    if (jsTest.options().traceExceptions) {
        if (typeof (msg) == "string" && msg.indexOf("assert") == 0)
            print(msg);
        else
            print("assert: " + msg);
    }
 
    var ex;
    if (obj) {
        ex = _getErrorWithCode(obj, msg);
    } else {
        ex = Error(msg);
    }
    if (jsTest.options().traceExceptions) {
        print(ex.stack);
    }
    throw ex;
};



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 16/Aug/21 ]

Author:

{'name': 'Alice Doherty', 'email': 'alice.doherty@mongodb.com', 'username': 'alicedoherty'}

Message: SERVER-57155 Disable 'traceExceptions' in generational fuzzer suites
Branch: master
https://github.com/mongodb/mongo/commit/6044b442c75a730e0d85cd3952ec51088b64c616

Comment by Charlie Swanson [ 28/May/21 ]

I've uploaded quieter_fuzzer.patch which I think should do the trick. It's worth confirming that when the test does fail you can still see helpful backtraces and information.

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