Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1572

mongosh prompt shows "other" when mongo prompt shows "secondary"

    • Type: Icon: Investigation Investigation
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.10.2
    • Component/s: Shell API
    • None
    • 2

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?

      Please be sure to attach relevant logs with any sensitive data redacted.
      How to retrieve logs for: Compass; Shell

      "other" was the displayed value for a hidden node prompt instead of "secondary"

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?

      Create an on-prem replica set or Atlas replica set with a hidden node. Log into the hidden node only.

      Expected Results

      What do you expect to happen?

      mongosh prompt to behave same as/similar to mongo shell

      Actual Results

      What do you observe is happening?

      "[direct: other]" is seen in prompt when logging into individual node.

      See attached images

      Additional Notes

      Any additional information that may be useful to include.

      https://support.mongodb.com/case/01138438 Rahul Sharma.

      https://github.com/10gen/mongo/blob/cc776520296a25606f3a6230b34bc2b89d7eff74/src/mongo/client/sdam/server_description.cpp#L211

            Assignee:
            Unassigned Unassigned
            Reporter:
            felicia.hsieh@mongodb.com Felicia Hsieh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: