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

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.2.0, 3.3.0
    • Component/s: API
    • None
    • Environment:
      Any
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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

            Assignee:
            Unassigned
            Reporter:
            Tug Grall
            None
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: