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

journal=true is ignored in connection string

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.3.3
    • Fix Version/s: 3.5.8
    • Component/s: None
    • Labels:
      None
    • MongoDB Version:
      3.4.17

      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

            Assignee:
            eric.adum Eric Adum
            Reporter:
            samat.yusupov@nordigy.ru Samat Yusupov
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: