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

journal=true is ignored in connection string

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.8
    • Affects Version/s: 3.3.3
    • Component/s: None

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

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

              Created:
              Updated:
              Resolved: