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

Removing host string arg length limitation for mongo shell

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.8.0-rc5
    • Affects Version/s: 2.8.0-rc3
    • Component/s: Shell
    • None
    • Fully Compatible
    • ALL
    • 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

      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.).

            Assignee:
            Unassigned Unassigned
            Reporter:
            akira.kurogane Akira Kurogane
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: