Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-822

replica set created from URI does not instantiate cluster mode for replica set

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.0.0
    • Affects Version/s: 2.0.0
    • Component/s: None
    • None

      Current code calling create_from_uri does not allow passing of options, which suggests that a URI with a replicaSet option should suffice for instantiating a client for a replica set. Instead, the cluster mode is standalone.

      Bug RUBY-816 addresses merging options, which is obviously needed for options that are not part of the MongoDB URI spec. It also enables the user to supply :mode => :replica_set so that the cluster mode is instantiated correctly.

      This raises the question of what is actually intended by the API for Client.new. The documentation is incomplete for addresses_or_uri and option :mode.

            Assignee:
            durran.jordan@mongodb.com Durran Jordan
            Reporter:
            gjmurakami Gary Murakami
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: