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

Fix the printing of JS objects in read concern passthrough test code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial - P5
    • Resolution: Fixed
    • Affects Version/s: 3.2.0-rc2
    • Fix Version/s: 3.2.0-rc3
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG C (11/20/15)

      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"};
              }
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: