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

If authentication is on for a replica set, then most likely all writes will always fail once primary server dies

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

      chechAuth is not included within block handling I/O errors of call() or say().
      So the whole logic to switch over master does not apply.
      If auth is on and the master stops responding, master will never switch and all read and write operations will always fail.
      Even if included in the try/catch block, checkauth actually catches IOexception and throws MongoException.Network.

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

              Created:
              Updated:
              Resolved: