<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:30 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>[GODRIVER-573] Need ability to run a command and get back a cursor</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-573</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The mongo tools need the ability to create a cursor from an arbitrary command (e.g. &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/repairCursor/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;repairCursor&lt;/a&gt;).  &lt;/p&gt;

&lt;p&gt;Creating it manually is difficult as cursor building is buried in the core/topology package and requires a lot of private details (e.g. which server to go back to for getMore).&lt;/p&gt;

&lt;p&gt;Could we add a &quot;RunCursorCommand&quot; method that takes an arbitrary command to run and returns a cursor object?&lt;/p&gt;</description>
                <environment></environment>
        <key id="606971">GODRIVER-573</key>
            <summary>Need ability to run a command and get back a cursor</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="3">Duplicate</resolution>
                                        <assignee username="david.golden@mongodb.com">David Golden</assignee>
                                    <reporter username="david.golden@mongodb.com">David Golden</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Sep 2018 11:54:41 +0000</created>
                <updated>Thu, 17 Jan 2019 15:54:39 +0000</updated>
                            <resolved>Thu, 17 Jan 2019 15:49:30 +0000</resolved>
                                                                    <component>Administrative Commands</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2118305" author="david.golden" created="Thu, 17 Jan 2019 15:49:30 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-437&quot; title=&quot;Add helpers for database and client level change streams&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-437&quot;&gt;&lt;del&gt;GODRIVER-437&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2012630" author="kris.brandow" created="Mon, 24 Sep 2018 20:20:54 +0000"  >&lt;p&gt;I think this is something we can support. It&apos;ll be unwieldy for users to build their own cursors from commands that return cursors. Users can still do so by running RunCommand, but if a user just wants to run a command that returns a cursor I think it makes sense to allow that.&lt;/p&gt;</comment>
                            <comment id="2010566" author="david.golden" created="Fri, 21 Sep 2018 16:19:32 +0000"  >&lt;p&gt;I spoke with Eric M.  and he says repair cursors are only for mmapv1.  However, we still need to support older servers with mmapv1, so we still need this feature for tools.&lt;/p&gt;</comment>
                            <comment id="2007708" author="david.golden" created="Wed, 19 Sep 2018 14:18:24 +0000"  >&lt;p&gt;It came in 2.7 as tools changed to no longer work directly against database files, so I suspect it&apos;s Wired Tiger or generic-storage-abstraction related.  The server ticket for it was &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15544&quot; title=&quot;Add a command to get a &amp;quot;repair&amp;quot; cursor.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15544&quot;&gt;&lt;del&gt;SERVER-15544&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2007605" author="jeff.yemin" created="Wed, 19 Sep 2018 12:45:11 +0000"  >&lt;p&gt;Yeah, I don&apos;t like that either.  I thought there was a more general way of doing this in mgo, but I don&apos;t see it.  &lt;/p&gt;

&lt;p&gt;Is repairCursor only for mmapv1?  There&apos;s no documentation about that one way or the other.&lt;/p&gt;
</comment>
                            <comment id="2007594" author="david.golden" created="Wed, 19 Sep 2018 12:36:45 +0000"  >&lt;p&gt;mgo provides a &lt;a href=&quot;https://godoc.org/gopkg.in/mgo.v2#Collection.Repair&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Repair&lt;/a&gt; method directly on Collection.  I don&apos;t think we should copy that because I don&apos;t think we want to encourage users to rely on it, as it&apos;s one of those underdocumented commands that only works sometimes (e.g. for some storage engines).&lt;/p&gt;

&lt;p&gt;I think a more general purpose method will serve us better in the long run.&lt;/p&gt;</comment>
                            <comment id="2007570" author="jeff.yemin" created="Wed, 19 Sep 2018 12:03:33 +0000"  >&lt;p&gt;Remind me how this is done in mgo, as a point of comparison.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htytm7:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>