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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5
    • None
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: