Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1102

Remove RequestStart from the public API

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0
    • Affects Version/s: None
    • Component/s: Connectivity
    • Labels:
      None
    • Major Change

      We are removing the ability to start and end requests in .NET.

      The purpose of requests was to provide read-your-writes consistency when using w=0 write concern. Starting a request pins a socket to a thread so any operations on that thread end up in the same queue on the server side.

      Justification for removing:

      • mongos 2.6+ doesn't support socket pinning by default, and mongos 2.8+ doesn't support it at all (SERVER-12273), so whatever weak consistency guarantees a request was supposed to provide are not provided with sharding.
      • It's a confusing feature that should rarely be used, if ever, yet people incorrectly use it all the time.
      • The connection pool cannot be utilized as efficiently.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: