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

Allow application to get db/collection/index list with any ReadPreferences

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.2.0, 3.3.0
    • API
    • None
    • Any

    Description

      It is very common to use Secondary nodes to do some analytics jobs, and it is working perfectly with common query, since it is possible to use a readPreference (from the client or during a call)

      However the MongClient, MongoDatabase, and MongoCollection force a ReadPreference.primary() when listing schema information.

      This is blocking when the applications only have access to secondary nodes in a replicaset.

      We should add the ReadPreference as an optional parameter to schema read/list methods

      Attachments

        Activity

          People

            Unassigned Unassigned
            tgrall Tug Grall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: