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

Implement topology discovery in shell

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: