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

Removing host string arg length limitation for mongo shell

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.8.0-rc3
    • Fix Version/s: 2.8.0-rc5
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      Try connecting to a replica set (an imaginary one will do, as the error will terminate execution before any real connections are attempted) with enough members in it that it exceeds the 250-char limit currently in place.

      E.g. mongo --host my-test-replica-set/appserver1.datacenter1.areallylongdomainname.com,appserver2.datacenter1.areallylongdomainname.com,appserver3.datacenter1.areallylongdomainname.com,appserver1.datacenter2.areallylongdomainname.com,appserver2.datacenter2.areallylongdomainname.com,appserver3.datacenter2.areallylongdomainname.com,appserver1.datacenter3.areallylongdomainname.com,appserver2.datacenter3.areallylongdomainname.com,appserver3.datacenter3.areallylongdomainname.com

      Show
      Try connecting to a replica set (an imaginary one will do, as the error will terminate execution before any real connections are attempted) with enough members in it that it exceeds the 250-char limit currently in place. E.g. mongo --host my-test-replica-set/appserver1.datacenter1.areallylongdomainname.com,appserver2.datacenter1.areallylongdomainname.com,appserver3.datacenter1.areallylongdomainname.com,appserver1.datacenter2.areallylongdomainname.com,appserver2.datacenter2.areallylongdomainname.com,appserver3.datacenter2.areallylongdomainname.com,appserver1.datacenter3.areallylongdomainname.com,appserver2.datacenter3.areallylongdomainname.com,appserver3.datacenter3.areallylongdomainname.com

      Description

      Please patch the mongo shell to remove the artificial 250 char limit for the --host argument. Users with many-member replica sets and longer hostnames can currently exceed that length.

      Note from Benety Goh: Any patch should also cover the v8 version 3.25 v8 files (just v8-3.25_db.cpp it seems a.t.m.).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: