Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-586

Bulk Writes sent to wrong server in write command mode

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.2-beta0
    • Affects Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None

      The bulk->hint is used to do all the precondition checks, including wire version, to decide if we should do legacy op inserts or write commands.

      When legacy op inserts are detect we submit the write to the correct bulk->hint server.

      However, in the case of write commands this hint gets lost mid-way and a new server selected.

      This has two consequences:

      • We could wind up attempting bulk write on a 2.4 server
      • A bulk write to a secondary `local` database will be re-routed to the primary, effectively resulting in dataloss.

            Assignee:
            Unassigned Unassigned
            Reporter:
            bjori Hannes Magnusson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: