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

Improve behavior of GridFS when using a ReadPreference other than Primay

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.8.2
    • 1.8.1
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: