<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:22:40 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-10244] Fail gracefully on invalid port number </title>
                <link>https://jira.mongodb.org/browse/SERVER-10244</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If I pass an invalid port to mongod it prints a stack trace after the error message. It should just print the error.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ernie@eahimac ~&amp;#93;&lt;/span&gt;$ ./mongodb-osx-x86_64-2.4.5/bin/mongod --port 123123&lt;br/&gt;
Wed Jul 17 17:10:18.557 bad --port number&lt;br/&gt;
Wed Jul 17 17:10:18.557 dbexit: &lt;br/&gt;
Wed Jul 17 17:10:18.557 shutdown: going to close listening sockets...&lt;br/&gt;
Wed Jul 17 17:10:18.557 shutdown: going to flush diaglog...&lt;br/&gt;
Wed Jul 17 17:10:18.557 shutdown: going to close sockets...&lt;br/&gt;
Wed Jul 17 17:10:18.557 shutdown: waiting for fs preallocator...&lt;br/&gt;
Wed Jul 17 17:10:18.557 shutdown: lock for final commit...&lt;br/&gt;
Wed Jul 17 17:10:18.557   Assertion failure c src/mongo/db/client.h 235&lt;br/&gt;
0x100447d8b 0x100421aec 0x100136a88 0x100136bc3 0x100136e4b 0x100136f78 0x1001e49bd 0x1000093a5 0x10000b593 0x1000010b4 &lt;br/&gt;
 0   mongod                              0x0000000100447d8b _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 1   mongod                              0x0000000100421aec _ZN5mongo12verifyFailedEPKcS1_j + 284&lt;br/&gt;
 2   mongod                              0x0000000100136a88 _ZN5mongo4Lock10ScopedLock6relockEv + 0&lt;br/&gt;
 3   mongod                              0x0000000100136bc3 _ZN5mongo4Lock10ScopedLockC2Ec + 39&lt;br/&gt;
 4   mongod                              0x0000000100136e4b _ZN5mongo4Lock10GlobalReadC2Ei + 29&lt;br/&gt;
 5   mongod                              0x0000000100136f78 _ZN5mongo11readlocktryC2Ei + 50&lt;br/&gt;
 6   mongod                              0x00000001001e49bd _ZN5mongo6dbexitENS_8ExitCodeEPKc + 861&lt;br/&gt;
 7   mongod                              0x00000001000093a5 _ZL25processCommandLineOptionsRKSt6vectorISsSaISsEE + 17397&lt;br/&gt;
 8   mongod                              0x000000010000b593 main + 467&lt;br/&gt;
 9   mongod                              0x00000001000010b4 start + 52&lt;br/&gt;
Wed Jul 17 17:10:18.581 shutdown failed with exception&lt;br/&gt;
Wed Jul 17 17:10:18.581 dbexit: really exiting now&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ernie@eahimac ~&amp;#93;&lt;/span&gt;$ &lt;/p&gt;

&lt;p&gt;The 2.5 shell is nicer (the 2.2 shell doesn&apos;t seem to catch it at all)&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ernie@eahimac ~&amp;#93;&lt;/span&gt;$ ./mongodb-osx-x86_64-2.2.5/bin/mongo --port 123123&lt;br/&gt;
MongoDB shell version: 2.2.5&lt;br/&gt;
connecting to: 127.0.0.1:123123/test&lt;br/&gt;
Wed Jul 17 17:12:19 getaddrinfo(&quot;127.0.0.1&quot;) failed: nodename nor servname provided, or not known&lt;br/&gt;
Wed Jul 17 17:12:19 Error: couldn&apos;t connect to server 127.0.0.1:123123 src/mongo/shell/mongo.js:93&lt;br/&gt;
exception: connect failed&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ernie@eahimac ~&amp;#93;&lt;/span&gt;$ ./mongodb-osx-x86_64-2.5.1/bin/mongo --port 123123&lt;br/&gt;
MongoDB shell version: 2.5.1&lt;br/&gt;
Wed Jul 17 17:12:29.804 Error: Invalid port number &quot;123123&quot; in connection string &quot;127.0.0.1:123123/test&quot; at src/mongo/shell/mongo.js:134&lt;br/&gt;
exception: connect failed&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ernie@eahimac ~&amp;#93;&lt;/span&gt;$ &lt;/p&gt;
</description>
                <environment></environment>
        <key id="82692">SERVER-10244</key>
            <summary>Fail gracefully on invalid port number </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ernie.hershey@mongodb.com">Ernie Hershey</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 17 Jul 2013 21:15:46 +0000</created>
                <updated>Wed, 10 Dec 2014 23:04:28 +0000</updated>
                            <resolved>Wed, 26 Feb 2014 07:31:45 +0000</resolved>
                                                                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="505525" author="dan@10gen.com" created="Wed, 26 Feb 2014 07:31:45 +0000"  >&lt;p&gt;the bad port was fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7808&quot; title=&quot;mongos allows you to specify an invalid port number&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7808&quot;&gt;&lt;del&gt;SERVER-7808&lt;/del&gt;&lt;/a&gt;.  in addition the entire command line and config file parsing system was refactored and has fixed the general issue.&lt;/p&gt;</comment>
                            <comment id="387511" author="eric.daniels@10gen.com" created="Wed, 24 Jul 2013 03:18:23 +0000"  >&lt;p&gt;This applies to more than just --port. It appears any command processed in &lt;tt&gt;processCommandLineOptions()&lt;/tt&gt; that calls &lt;tt&gt;dbexit()&lt;/tt&gt; as a failure mechanism causes a stack trace to be printed. It is also somewhat misleading having the stack trace there because it detracts from the fact that the real error is printed on the first line of output.&lt;/p&gt;</comment>
                            <comment id="383696" author="tad" created="Thu, 18 Jul 2013 01:11:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8030&quot; title=&quot;mongo shell crashes with missing host&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8030&quot;&gt;&lt;del&gt;SERVER-8030&lt;/del&gt;&lt;/a&gt; is the ticket that improved the shell&apos;s connection string validation (so an invalid port number is found and reported).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="57983">SERVER-7808</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="60349">SERVER-8030</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 18 Jul 2013 01:11:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 51 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 51 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>eric.daniels@mongodb.com</customfieldvalue>
            <customfieldvalue>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmmpr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg2zr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7387</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hspelr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>