Uploaded image for project: 'Rust Driver'
  1. Rust Driver
  2. RUST-926

directConnection=true cannot be used with hidden nodes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 2.0.0
    • Affects Version/s: None
    • Component/s: None

      [https://docs.rs/mongodb/2.0.0-beta.2/mongodb/options/struct.ClientOptions.html#structfield.hosts
      ]
      there are two problems:
      1. The direct params in doc links should be directConnection. 
      2. directConnection = True can not work

      database link: 

      mongodb://xxx:xxx@xxxx:xx/xx?replicaSet=xx&authSource=admin&readPreference=secondary&directconnection=true

      the host is one of secondary node.

      Error: Error { kind: ServerSelection { message: "Server selection timeout: None of the available servers suitable for criteria Predicate. Topology: { Type: Single, Servers: [...

            Assignee:
            patrick.freed@mongodb.com Patrick Freed
            Reporter:
            guoyunlei123@gmail.com Dalei N/A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: