<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:19 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-1544] blocking for replication returns success with no replication configured</title>
                <link>https://jira.mongodb.org/browse/SERVER-1544</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; db.printReplicationInfo()&lt;br/&gt;
{&lt;br/&gt;
        &quot;errmsg&quot; : &quot;local.oplog.$main, or its options, not found in system.namespaces collection (not --master?)&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;&amp;gt; db.printSlaveReplicationInfo()&lt;br/&gt;
local.sources is empty; is this db a --slave?&lt;/p&gt;

&lt;p&gt;&amp;gt; coll.insert({})&lt;br/&gt;
&amp;gt; db.runCommand(&lt;/p&gt;
{ getlasterror: 1, w: 2, wtimeout: 3000 }
&lt;p&gt;)&lt;/p&gt;
{ &quot;err&quot; : null, &quot;n&quot; : 0, &quot;ok&quot; : 1 }

&lt;p&gt;The above should fail--it could not possibly have replicated to two servers since there is only one.&lt;/p&gt;</description>
                <environment>ubuntu 10.04.1, x86-64&lt;br/&gt;
</environment>
        <key id="12627">SERVER-1544</key>
            <summary>blocking for replication returns success with no replication configured</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="9">Done</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="nick@leippe.com">Nick Leippe</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Aug 2010 18:21:10 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:47 +0000</updated>
                            <resolved>Mon, 2 Aug 2010 21:16:26 +0000</resolved>
                                    <version>1.4.4</version>
                                    <fixVersion>1.5.8</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16855" author="eliot" created="Fri, 13 Aug 2010 15:56:31 +0000"  >&lt;p&gt;The case doesn&apos;t address the issue you&apos;re having at all.&lt;br/&gt;
The drivers throw an exception for &quot;ok:0&quot; which you can see in the shell as well.&lt;/p&gt;</comment>
                            <comment id="16853" author="nick@leippe.com" created="Fri, 13 Aug 2010 15:44:08 +0000"  >&lt;p&gt;still having some problems with this:&lt;br/&gt;
server 1.6.0&lt;br/&gt;
client 1.6.0&lt;br/&gt;
pymongo 1.8.1&lt;/p&gt;

&lt;p&gt;in the shell, I get the expected behavior:&lt;br/&gt;
&amp;gt; db.runCommand(&lt;/p&gt;
{ getlasterror: 1, w: 2, wtimeout: 3000 }
&lt;p&gt;)&lt;br/&gt;
{&lt;br/&gt;
        &quot;err&quot; : null,&lt;br/&gt;
        &quot;n&quot; : 0,&lt;br/&gt;
        &quot;wtimeout&quot; : true,&lt;br/&gt;
        &quot;waited&quot; : 3000,&lt;br/&gt;
        &quot;errmsg&quot; : &quot;timed out waiting for slaves&quot;,&lt;br/&gt;
        &quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;but from with this python code:&lt;br/&gt;
        err = db.command(&quot;getlasterror&quot;,&lt;br/&gt;
                         w        = 2, # replicate to at least one slave&lt;br/&gt;
                         wtimeout = 1000 * timeout_s&lt;br/&gt;
                         )&lt;/p&gt;

&lt;p&gt;I still get:&lt;/p&gt;

&lt;p&gt;  File &quot;build/bdist.linux-x86_64/egg/pymongo/database.py&quot;, line 294, in command&lt;br/&gt;
pymongo.errors.OperationFailure: command SON(&lt;span class=&quot;error&quot;&gt;&amp;#91;(&amp;#39;getlasterror&amp;#39;, 1), (&amp;#39;wtimeout&amp;#39;, 2000), (&amp;#39;w&amp;#39;, 2)&amp;#93;&lt;/span&gt;) failed: timed out waiting for slaves&lt;/p&gt;

&lt;p&gt;So, for some reason the driver is still raising an exception.&lt;/p&gt;
</comment>
                            <comment id="16390" author="nick@leippe.com" created="Mon, 2 Aug 2010 20:32:11 +0000"  >&lt;p&gt;just tested on 1.5.6, same behavior still exists.&lt;br/&gt;
not sure how to edit the bug to update the affected version&lt;/p&gt;</comment>
                    </comments>
                    <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>Fri, 13 Aug 2010 15:56:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 27 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_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>
                            13 years, 27 weeks, 5 days 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>eliot</customfieldvalue>
            <customfieldvalue>nick@leippe.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpi7b:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21610</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|ht0i3z:</customfieldvalue>

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