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

Improve behavior of GridFS when using a ReadPreference other than Primay

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.8.2
    • Affects Version/s: 1.8.1
    • Component/s: None
    • None

      Currently when connected to a replica set and using MongoGridFSFileInfo or MongoGridFSStream with a ReadPreference other than Primary the reads can be distributed over different secondaries, possibly leading to inconsistent results if the different secondaries have different replication lags.

      Instead, MongoGridFSFileInfo and MongoGridFSStream should be bound to a specific secondary, so that all operations performed within the scope of the object go to the same secondary.

            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: