Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-275

with default write concern (no getLastError), if master changes in repl set, small edge case where writes will fail undetected

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

      In case or reads, we always get an answer back from db and if it's an error saying "not master", we do a force check master.
      But for writes, with default setting, client never gets an answer back and the error goes unnoticed.
      A clean fix would be to have updater thread do a forced checkmaster.
      This way the max we lose is 5s worth of docs.. which is ok for w=0.

            Assignee:
            antoine Antoine Girbal
            Reporter:
            antoine Antoine Girbal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: