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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Labels:
      None
    • # Replies:
      5
    • Last comment by Customer:
      true

      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since reply:
                  6 years, 26 weeks, 1 day ago
                  Date of 1st Reply: