Java client does not gracefully handle a replication set failure

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.4
    • Component/s: Cluster Management
    • None
    • Environment:
      Ubuntu Server 10.04 LTS, Mongo 1.6.5 from 10gen repository
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Antoine Girbal (Inactive)
            Reporter:
            Tony Nelson
            None
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: