<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:40:28 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-35638] Shell auto-completion blocks when listCollection is waiting for locks</title>
                <link>https://jira.mongodb.org/browse/SERVER-35638</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Auto-completion after `db.` sends a listCollection to the server, which may be blocked on locks. In 4.0, the lifespan of a lock could be much longer than before due to transactions. When a &apos;dropDatabase&apos; is waiting on the global lock in X mode which is acquired by an inactive transaction in IX mode, &lt;tt&gt;listCollection&lt;/tt&gt; will be blocked. The behavior is expected, but when a user notices the blocking dropDatabase and wants to inspect and kill the current operation, the user cannot use auto-completion. Otherwise, the shell hangs after the &amp;lt;tab&amp;gt;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&amp;gt; db.cur&amp;lt;tab&amp;gt;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Using &lt;tt&gt;maxTimeMS&lt;/tt&gt; with &lt;tt&gt;listCommand&lt;/tt&gt; could fix the usability issue.&lt;/p&gt;</description>
                <environment></environment>
        <key id="560345">SERVER-35638</key>
            <summary>Shell auto-completion blocks when listCollection is waiting for locks</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="siyuan.zhou@mongodb.com">Siyuan Zhou</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Sat, 16 Jun 2018 05:35:55 +0000</created>
                <updated>Sun, 29 Oct 2023 22:30:42 +0000</updated>
                            <resolved>Fri, 26 Apr 2019 19:48:02 +0000</resolved>
                                                    <fixVersion>4.1.11</fixVersion>
                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="2226540" author="xgen-internal-githook" created="Fri, 26 Apr 2019 19:18:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35638&quot; title=&quot;Shell auto-completion blocks when listCollection is waiting for locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35638&quot;&gt;&lt;del&gt;SERVER-35638&lt;/del&gt;&lt;/a&gt; Short timeout to autocomplete collection names&lt;/p&gt;

&lt;p&gt;Also resolves &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40736&quot; title=&quot;Test collection name autocompletion for users without listCollections privilege&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40736&quot;&gt;&lt;del&gt;SERVER-40736&lt;/del&gt;&lt;/a&gt;, test autocompletion of collection names for users&lt;br/&gt;
without the listCollections permission.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b6cc1fb89f8fbf92c66ef6274a1de1ad310b2fb1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b6cc1fb89f8fbf92c66ef6274a1de1ad310b2fb1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2223751" author="xgen-internal-githook" created="Wed, 24 Apr 2019 18:42:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;justin.seyster@mongodb.com&apos;, &apos;name&apos;: &apos;Justin Seyster&apos;, &apos;username&apos;: &apos;jseyster&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35638&quot; title=&quot;Shell auto-completion blocks when listCollection is waiting for locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35638&quot;&gt;&lt;del&gt;SERVER-35638&lt;/del&gt;&lt;/a&gt; Short timeout to autocomplete collection names&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit f202c4c1ba24b9f561e8b11dac5b04fa0eeb4919.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0e9dcfbff4846e848b82e9c99f0d950dd7eaeae1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0e9dcfbff4846e848b82e9c99f0d950dd7eaeae1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2223301" author="xgen-internal-githook" created="Wed, 24 Apr 2019 14:49:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;username&apos;: &apos;ajdavis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-35638&quot; title=&quot;Shell auto-completion blocks when listCollection is waiting for locks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-35638&quot;&gt;&lt;del&gt;SERVER-35638&lt;/del&gt;&lt;/a&gt; Short timeout to autocomplete collection names&lt;/p&gt;

&lt;p&gt;Also resolves &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40736&quot; title=&quot;Test collection name autocompletion for users without listCollections privilege&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40736&quot;&gt;&lt;del&gt;SERVER-40736&lt;/del&gt;&lt;/a&gt;, test autocompletion of collection names for users&lt;br/&gt;
without the listCollections permission.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f202c4c1ba24b9f561e8b11dac5b04fa0eeb4919&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f202c4c1ba24b9f561e8b11dac5b04fa0eeb4919&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2219472" author="jesse" created="Fri, 19 Apr 2019 18:25:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alyson.cabral&quot; class=&quot;user-hover&quot; rel=&quot;alyson.cabral&quot;&gt;alyson.cabral&lt;/a&gt; see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40736&quot; title=&quot;Test collection name autocompletion for users without listCollections privilege&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40736&quot;&gt;&lt;del&gt;SERVER-40736&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2218766" author="alyson.cabral" created="Fri, 19 Apr 2019 03:18:03 +0000"  >&lt;p&gt;I think doing this ticket is valuable. But yes, I think we should also open another ticket.&lt;/p&gt;</comment>
                            <comment id="2217167" author="jesse" created="Wed, 17 Apr 2019 21:29:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alyson.cabral&quot; class=&quot;user-hover&quot; rel=&quot;alyson.cabral&quot;&gt;alyson.cabral&lt;/a&gt; I&apos;m just reading this ticket for the first time. Can you explain what the list collections privilege has to do with this ticket? I thought this ticket&apos;s issue was concerned with transactions blocking listCollections, but not anything to do with privileges. Are you suggesting we should open a separate ticket? That ticket would be to enable, for auto-completion, the same privilege workaround we implemented for &quot;show dbs&quot; and &quot;show collections&quot;.&lt;/p&gt;</comment>
                            <comment id="2123689" author="alyson.cabral" created="Wed, 23 Jan 2019 01:30:35 +0000"  >&lt;p&gt;Many users in atlas do not have the list collections privilege. I&apos;m more interested in getting this to work for all of our users in the same way we got show dbs and show collections working.&lt;/p&gt;</comment>
                            <comment id="1923913" author="greg.mckeon" created="Mon, 18 Jun 2018 18:39:25 +0000"  >&lt;p&gt;Assigning this to neweng to determine if we can just fix this with maxtimems.&lt;/p&gt;</comment>
                            <comment id="1922602" author="siyuan.zhou@10gen.com" created="Sat, 16 Jun 2018 05:39:53 +0000"  >&lt;p&gt;CC&apos;ing &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn&quot;&gt;max.hirschhorn&lt;/a&gt; for the shell issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="767128">SERVER-41118</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="487905">SERVER-32942</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="575756">SERVER-36262</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="15640"><![CDATA[v4.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 18 Jun 2018 18:39:25 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 41 weeks, 5 days 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1338</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 41 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</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>jesse@mongodb.com</customfieldvalue>
            <customfieldvalue>alyson.cabral@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>greg.mckeon@mongodb.com</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu0s27:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2859">Service Arch 2019-04-22</customfieldvalue>

                        </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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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