<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:58 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-8975] Deleting non-existent indexes on a collection drops active (basic) cursors on that collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-8975</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>
&lt;p&gt;See &lt;a href=&quot;https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/7lydgWPRmcI&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?fromgroups=#!topic/mongodb-user/7lydgWPRmcI&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If when I have an active basic cursor, I delete an index on the same collection, then the cursor is dropped.&lt;/p&gt;

&lt;p&gt;(in my case it&apos;s a non-existent index, I don&apos;t know if dropping a real one would also fail)&lt;/p&gt;

&lt;p&gt;Furthermore, the DBCursor.hasNext()/DBCursor.next() from the java driver, instead of returning an error, returns what it claims is a valid DBObject but in fact is just &lt;/p&gt;

{ &quot;$err&quot; : &quot;getMore: cursor didn&apos;t exist on server, possible restart or timeout?&quot; , &quot;code&quot; : 13127}

&lt;p&gt;which imo is terrible error handling (I&apos;ve seen similar issues with the Java driver before, eg DBCursor.count() returned 100 after timing out due to DB load on a much larger query)&lt;/p&gt;

&lt;p&gt;(If you want me to create a separate Java driver issue for the error handling then let me know)&lt;/p&gt;

&lt;p&gt;If it&apos;s intended behavior that index operations interfere with cursors (which it shouldn&apos;t be I think?) then at least you should update the documentation eg &lt;a href=&quot;http://docs.mongodb.org/manual/core/read-operations/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org/manual/core/read-operations/&lt;/a&gt;&lt;/p&gt;</description>
                <environment>RH6.3, mongod, 2.2.3, java driver 2.7/2.10 going through mongos</environment>
        <key id="68334">SERVER-8975</key>
            <summary>Deleting non-existent indexes on a collection drops active (basic) cursors on that collection</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="apiggott@ikanow.com">Alex Piggott</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Mar 2013 21:19:00 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:09 +0000</updated>
                            <resolved>Wed, 13 Mar 2013 21:54:59 +0000</resolved>
                                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="288632" author="aaron" created="Wed, 13 Mar 2013 22:50:33 +0000"  >&lt;p&gt;Hi Alex - I filed &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-1236&quot; title=&quot;document cursor lifecycle&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-1236&quot;&gt;&lt;del&gt;DOCS-1236&lt;/del&gt;&lt;/a&gt; to try and improve the relevant documentation.&lt;/p&gt;</comment>
                            <comment id="288576" author="apiggott@ikanow.com" created="Wed, 13 Mar 2013 21:59:02 +0000"  >&lt;p&gt;Gah I really wish I&apos;d found that issue 3 hours of my life ago &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="288568" author="aaron" created="Wed, 13 Mar 2013 21:53:59 +0000"  >&lt;p&gt;Hi Alex - I&apos;m going to close this as a dup of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3964&quot; title=&quot;Dropping an index invalidates all cursors on that collection, not just ones using that index.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3964&quot;&gt;&lt;del&gt;SERVER-3964&lt;/del&gt;&lt;/a&gt;.  Please feel free to comment / vote on that ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="22891">SERVER-3964</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Mar 2013 21:53:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 49 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>
                            10 years, 49 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>aaron</customfieldvalue>
            <customfieldvalue>apiggott@ikanow.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn1m7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>46126</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Note that this does &lt;em&gt;not&lt;/em&gt; occur if you use the console version of dropIndex(), only if you use the Java driver version. The difference can be seen in the log:&lt;/p&gt;

&lt;p&gt;Cursor version:&lt;br/&gt;
eg mongo doc_metadata --eval &apos;printjson(db.metadata.dropIndex(&lt;/p&gt;
{sourceUrl:1}
&lt;p&gt;))&apos;&lt;br/&gt;
Wed Mar 13 21:14:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn13&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 21:14:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn13&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 21:14:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn13&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 21:14:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn13&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;/p&gt;

&lt;p&gt;Java driver version:&lt;br/&gt;
eg dbcollection.coll.dropIndex(new BasicDBObject(&quot;sourceUrl&quot;, 1));&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; dropIndexes: sourceUrl_1 not found&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; dropIndexes: sourceKey_1 not found&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; dropIndexes: title_1 not found&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; CMD: dropIndexes doc_metadata.metadata&lt;br/&gt;
Wed Mar 13 15:57:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; dropIndexes: updateId_1 not found&lt;/p&gt;

&lt;p&gt;Presumably this is significant&lt;/p&gt;</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht056n:</customfieldvalue>

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