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

In GridFS, Delete, Move and CopyTo should always use ReadPreference.Primary as opposed to user specified ReadPreference

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9
    • Component/s: None
    • Labels:
      None

      Description

      GridFS, in order to ensure read consistency, pins a GridFSFileInfo to the member it was read from. This is inadvertantly used when deleting this file which can cause "Not Primary" errors when the file was read from a secondary.

        Attachments

          Activity

            People

            Assignee:
            sridhar Sridhar Nanjundeswaran
            Reporter:
            craiggwilson Craig Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: