[SERVER-21343] Fix the printing of JS objects in read concern passthrough test code Created: 07/Nov/15  Updated: 17/Nov/15  Resolved: 12/Nov/15

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.2.0-rc2
Fix Version/s: 3.2.0-rc3

Type: Bug Priority: Trivial - P5
Reporter: Kamran K. Assignee: Michael Grundy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG C (11/20/15)
Participants:

 Description   

This code in jstests/libs/override_methods/set_majority_read_and_write_concerns.js should use tojson() for the objects in the jsTestLog calls:

        if (forceWriteConcern) {
            if (obj.hasOwnProperty("writeConcern")) {
                jsTestLog("Warning: overriding existing writeConcern of: " +
                           obj.writeConcern);
            }
            obj.writeConcern = defaultWriteConcern;
 
        } else if (forceReadConcern) {
            if (obj.hasOwnProperty("readConcern")) {
                jsTestLog("Warning: overriding existing readConcern of: " +
                           obj.readConcern);
            }
            obj.readConcern = {level: "majority"};
        }



 Comments   
Comment by Githook User [ 12/Nov/15 ]

Author:

{u'username': u'mgrundy', u'name': u'Mike Grundy', u'email': u'michael.grundy@10gen.com'}

Message: SERVER-21343 Fix the printing of JS objects in read concern passthrough test code
Branch: master
https://github.com/mongodb/mongo/commit/21fe3e04acd53ad7888f4b8648f816788243aa33

Generated at Thu Feb 08 03:57:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.