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

Java client does not gracefully handle a replication set failure

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • 2.4
    • Cluster Management
    • None
    • Ubuntu Server 10.04 LTS, Mongo 1.6.5 from 10gen repository

    Description

      Simply put, when a client is connected to a replica set and the replica set fails over from one master to another, the Mongo instance never detects the change and continues to erroneously send all commands to the old slave.

      This was discussed on the mailing list here:

      http://groups.google.com/group/mongodb-user/browse_thread/thread/798f269f0882a16c

      Per Scott Hernandez's suggestion I have created an example of the failure that runs like as a maven test case

      git://github.com/hhubris/mongo-fail-demo.git

      Creating a new Mongo object works around the problem, but it doesn't feel like the right solution.

      Thanks again for all the help.

      Attachments

        Activity

          People

            antoine Antoine Girbal
            hhubris Tony Nelson
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: