Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-2442

journal=true is ignored in connection string

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.3.3
    • 3.5.8
    • None

    Description

      Hello!

      We have observed strange behaviour after mongo-driver upgrade from 2.2.x to 3.3.x.

      Connection string has journal=true and it is ignored when making queries.

      const connectionUri =
          'mongodb://mongo1:30000,mongo2:30001,mongo3:30002/ec?w=majority&journal=true&replicaSet=rs0&readPreference=primaryPreferred&wtimeoutMS=5000';
      const client = await MongoClient.connect(connectionUri);
      

      From the other side, using explicit `

      {j: true}

      ` starts working.

      const client = await MongoClient.connect(connectionUri, {j: true});
      

      Attachments

        Activity

          People

            eric.adum@mongodb.com Eric Adum (Inactive)
            samat.yusupov@nordigy.ru Samat Yusupov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: