Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50132

Implement topology discovery in shell

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • Server Tooling & Methods

      Drivers provide two ways to discover the topology of a deployment and connect to it appropriately:

      • By specifying multiple hosts:

      mongo mongodb://localhost:14420,localhost:14421

      It seems to me that mongo shell does not implement either of these behaviors.

      Specifically, there appears to be no way to connect to replica set using mongo shell without providing the replica set name.

      The decision across drivers was to implement topology discovery by default. New drivers must implement it, existing drivers can continue with their existing behavior for BC reasons.

      To improve usability of the shell and make it consistent with drivers, I suggest implementing one or both of the above mentioned ways of discovering and connecting to replica set without specifying replica set name explicitly.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: