[SERVER-16716] Removing host string arg length limitation for mongo shell Created: 04/Jan/15 Updated: 05/Jan/15 Resolved: 05/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Shell |
| Affects Version/s: | 2.8.0-rc3 |
| Fix Version/s: | 2.8.0-rc5 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Akira Kurogane | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| 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 |
||||
| Participants: | |||||
| 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.). |
| Comments |
| Comment by Akira Kurogane [ 05/Jan/15 ] |
|
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. |
| Comment by Githook User [ 05/Jan/15 ] |
|
Author: {u'name': u'Akira Kurogane', u'email': u'akira.kurogane@10gen.com'}Message: Closes #898 Signed-off-by: Benety Goh <benety@mongodb.com> |
| Comment by Githook User [ 05/Jan/15 ] |
|
Author: {u'name': u'Akira Kurogane', u'email': u'akira.kurogane@10gen.com'}Message: Closes #898 Signed-off-by: Benety Goh <benety@mongodb.com> |