<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:27 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-1585] block for replication with wtimeout throws OperationFailure exception</title>
                <link>https://jira.mongodb.org/browse/SERVER-1585</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;python code:&lt;/p&gt;

&lt;p&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;Rather than return an error to be tested, if the above timesout, I 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;If a wtimeout is supplied, that indicates that a timeout is expected behavior--not exceptional behavior.&lt;br/&gt;
It should simply return the result in the error object for examination, not throw OperationFailure.&lt;/p&gt;</description>
                <environment>ubuntu 10.4, x86_64</environment>
        <key id="12698">SERVER-1585</key>
            <summary>block for replication with wtimeout throws OperationFailure exception</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>Fri, 6 Aug 2010 17:23:39 +0000</created>
                <updated>Tue, 12 Jul 2016 00:20:00 +0000</updated>
                            <resolved>Wed, 10 Nov 2010 21:04:09 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>1.7.3</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="20217" author="auto" created="Wed, 10 Nov 2010 21:04:04 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: on w timeout, don&apos;t set ok=0, but set ok=1 and set err &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1585&quot; title=&quot;block for replication with wtimeout throws OperationFailure exception&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1585&quot;&gt;&lt;del&gt;SERVER-1585&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
/mongodb/mongo/commit/5a9526231e9a541adfae8e03b33dc1ba33cc76de&lt;/p&gt;</comment>
                            <comment id="16561" author="eliot" created="Fri, 6 Aug 2010 19:47:19 +0000"  >&lt;p&gt;Will change to make ok=1 and set err&lt;/p&gt;</comment>
                            <comment id="16559" author="nick@leippe.com" created="Fri, 6 Aug 2010 18:02:05 +0000"  >&lt;p&gt;When run in the shell I get:&lt;br/&gt;
&amp;gt; db.runCommand(&lt;/p&gt;
{&quot;getlasterror&quot;: 1, &quot;w&quot;: 2, &quot;wtimeout&quot;: 2000}
&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; : 2000,&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;So this may be a pymongo python driver issue.&lt;br/&gt;
My guess is that the driver is looking only at &quot;ok&quot;, and not &quot;err&quot; or &quot;n&quot; also.&lt;/p&gt;</comment>
                            <comment id="16550" author="nick@leippe.com" created="Fri, 6 Aug 2010 17:25:38 +0000"  >&lt;p&gt;Similar to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1572&quot; title=&quot;If there are no matches, findandmodify() should return an empty result, not raise an exception.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1572&quot;&gt;&lt;del&gt;SERVER-1572&lt;/del&gt;&lt;/a&gt; inspecting the exception to discover it&apos;s simply a timeout is messy.&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Aug 2010 19:47:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 15 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>
                            13 years, 15 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>auto</customfieldvalue>
            <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|hrphpj:</customfieldvalue>

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

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

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