<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35: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>[GODRIVER-1016] Get current op on MongoDB 2.6</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1016</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I&apos;m migrating a MongoDB monitoring tool from mgo to new official mongo driver.&lt;/p&gt;

&lt;p&gt;One of my MongoDB version uses the version 2.6 (yes I know, it&apos;s very old, and my team is migrating it)&lt;/p&gt;

&lt;p&gt;In my code, I&apos;m doing a &quot;find one&quot; query on the &quot;$cmd.sys.inprog&quot; collection.&lt;/p&gt;

&lt;p&gt;With the old mgo library, it was working fine. With the official mongo driver, it returns an error message:&lt;/p&gt;

&lt;p&gt;query failure: {&quot;$err&quot;: &quot;bad numberToReturn (0) for $cmd type ns - can only be 1 or -1&quot;,&quot;code&quot;: {&quot;$numberInt&quot;:&quot;16978&quot;}}&lt;/p&gt;

&lt;p&gt;I provided in attachment my old and new code.&lt;/p&gt;

&lt;p&gt;Any idea ?&lt;/p&gt;</description>
                <environment>OS: Linux&lt;br/&gt;
MongoDB: 2.6</environment>
        <key id="757423">GODRIVER-1016</key>
            <summary>Get current op on MongoDB 2.6</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="13201">Fixed</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="pierrre">Pierre Durand</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 May 2019 09:58:25 +0000</created>
                <updated>Sat, 28 Oct 2023 11:38:54 +0000</updated>
                            <resolved>Wed, 5 Jun 2019 16:48:29 +0000</resolved>
                                    <version>1.0.1</version>
                                    <fixVersion>1.0.3</fixVersion>
                                    <component>Administrative Commands</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2275126" author="pierrre" created="Thu, 6 Jun 2019 21:36:48 +0000"  >&lt;p&gt;Thank you for the fix, I&apos;ll test tomorrow !&#160;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/thumbs_up.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="2264394" author="xgen-internal-githook" created="Wed, 29 May 2019 20:43:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: Change Find and FindOne to use FindOperation&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1070&quot; title=&quot;Change Collection.Find to use FindOperation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1070&quot;&gt;&lt;del&gt;GODRIVER-1070&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1016&quot; title=&quot;Get current op on MongoDB 2.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1016&quot;&gt;&lt;del&gt;GODRIVER-1016&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: I1ab89cc11921e1d3158f263dbe19b24f1ca2de9e&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/5fc39da6b947e5a2df3ff79991d5c490d04721f8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/5fc39da6b947e5a2df3ff79991d5c490d04721f8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2259659" author="divjot.arora" created="Fri, 24 May 2019 19:18:16 +0000"  >&lt;p&gt;CR:&#160;&lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/455709&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/455709&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2258044" author="ian@10gen.com" created="Thu, 23 May 2019 16:26:04 +0000"  >&lt;p&gt;note to implementer: we should set a limit of -1 when doing a findOne.  this will likely happen in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-1070&quot; title=&quot;Change Collection.Find to use FindOperation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-1070&quot;&gt;&lt;del&gt;GODRIVER-1070&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="790068">GODRIVER-1112</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="215867" name="mgocurrentop.go" size="421" author="pierrre" created="Fri, 3 May 2019 09:57:45 +0000"/>
                            <attachment id="215868" name="mongocurrentop.go" size="694" author="pierrre" created="Fri, 3 May 2019 09:57:36 +0000"/>
                    </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|hr77yf:</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>