Info
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.).
Top User Comments
akira.kurogane commented on Mon, 5 Jan 2015 22:17:35 +0000:
Done with github mongodb/mongo commits b3d1c67 and e578d9e.
Regarding backport- presumably it could be applied to 2.4 at least. As support lifetime is rapidly closing it doesn't seem to be worthwhile though.
xgen-internal-githook commented on Mon, 5 Jan 2015 18:49:08 +0000:
Author:
{u'name': u'Akira Kurogane', u'email': u'akira.kurogane@10gen.com'}
Message: SERVER-16716 (v8-3.25) Removing host string arg length limitation for mongo shell
Closes #898
Signed-off-by: Benety Goh
Branch: master
https://github.com/mongodb/mongo/commit/e578d9ec131dd3332ae65beb9350b5ab18450194
xgen-internal-githook commented on Mon, 5 Jan 2015 18:49:07 +0000:
Author:
{u'name': u'Akira Kurogane', u'email': u'akira.kurogane@10gen.com'}
Message: SERVER-16716 Removing host string arg length limitation for mongo shell
Closes #898
Signed-off-by: Benety Goh
Branch: master
https://github.com/mongodb/mongo/commit/b3d1c67e9b4cc4597f6575684db4d1b91ce160e7
Steps to Reproduce
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