Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-254

Add support for the readConcern option.

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      PYTHON-981 Done 3.2
      PERL-564 Done 1.2.0
      NODE-541 Done 2.0.43
      CDRIVER-837 Done 1.3.0-beta0
      RUBY-1038 Done 2.2.0
      CSHARP-1438 Done 2.2
      JAVA-2002 Done 3.2.0
      CXX-695 Done 3.0.0-rc0
      PHPLIB-130 Done 1.0.0-beta2
      CXX-694 Won't Fix
      SCALA-214 Done 1.1.0
      PHPC-448 Done 1.1.0
      RUST-12 Duplicate
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion PYTHON-981 Done 3.2 PERL-564 Done 1.2.0 NODE-541 Done 2.0.43 CDRIVER-837 Done 1.3.0-beta0 RUBY-1038 Done 2.2.0 CSHARP-1438 Done 2.2 JAVA-2002 Done 3.2.0 CXX-695 Done 3.0.0-rc0 PHPLIB-130 Done 1.0.0-beta2 CXX-694 Won't Fix SCALA-214 Done 1.1.0 PHPC-448 Done 1.1.0 RUST-12 Duplicate

    Description

      The Read Concern specification details the specifics of implementing read concern in your driver. You'll find that it is very similar to write concern.


      How it looks like for commands:

      db.runCommand({
          find: ....,
          readConcern : {
              level: “[majority|local]”
          }
      });
      

      Note: readConcern is only supported for the new find command helper, not legacy OP_QUERY queries.


      New URI option:

      mongodb://server:27017/db?readConcernLevel=[majority|local]
      


      The commands that accept read concern are listed below:

      • find
      • aggregate without $out
      • mapReduce when the result is inline
      • distinct
      • count
      • parallelCollectionScan
      • geoNear
      • geoSearch
      You only need to add support for these commands to your helper methods. Users using the runCommand method on your database object will need to supply a readConcern manually.

      Attachments

        Activity

          People

            craig.wilson@mongodb.com Craig Wilson
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: