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

Update Transactions Retry Example 3 to include read preference

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Docs Examples
    • Labels:
      None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      NODE-1847 Done
      SCALA-490 Fixed 2.7.0
      PYTHON-1729 Fixed 3.9
      CSHARP-2492 Fixed 2.10.0
      PERL-1056 Done 2.1.1
      RUBY-1688 Fixed 2.13.0.beta1
      JAVA-3152 Fixed 3.11.0
      CXX-1718 Won't Fix
      PHPLIB-408 Fixed 1.5.0
      RUST-133 Won't Fix
      MOTOR-301 Won't Fix
      GODRIVER-788 Fixed 1.0.0-rc1
      CDRIVER-2935 Won't Fix
      $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 NODE-1847 Done SCALA-490 Fixed 2.7.0 PYTHON-1729 Fixed 3.9 CSHARP-2492 Fixed 2.10.0 PERL-1056 Done 2.1.1 RUBY-1688 Fixed 2.13.0.beta1 JAVA-3152 Fixed 3.11.0 CXX-1718 Won't Fix PHPLIB-408 Fixed 1.5.0 RUST-133 Won't Fix MOTOR-301 Won't Fix GODRIVER-788 Fixed 1.0.0-rc1 CDRIVER-2935 Won't Fix

      Hi – so, there have been questions about how to set read preference for transactions:

      Currently, in Transactions Retry Example 3, we start the transaction with read concern/write concern.

      Could we update the startTransaction call to include read preference 'primary'

      Documentation link : https://docs.mongodb.com/master/core/transactions/#transactions-in-applications

            Assignee:
            Unassigned Unassigned
            Reporter:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: