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

API documentation for MongoClient 3.0+ should describe mongos round-robin selection

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.0
    • Affects Version/s: 3.2.0
    • Component/s: Documentation
    • None

      In the API documentation for the 3.0+ MongoClient options:
      http://api.mongodb.org/java/3.0/?com/mongodb/MongoClientOptions.html

      When using a List of servers it states:

      If this is a list of mongos servers, it will pick the closest (lowest ping time) one to send all requests to, and automatically fail over to the next server if the closest is down.

      But with 3.0+ this is no longer true, as described in
      MongoClientOptions.getLocalThreshold():

      Gets the local threshold. When choosing among multiple MongoDB servers to send a request, the MongoClient will only send that request to a server whose ping time is less than or equal to the server with the fastest ping time plus the local threshold.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            alan.mccoy Roger McCoy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: