<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57: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-1768] getLastError(2) hangs forever when &quot;replSet error RS102 too stale to catch up&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-1768</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1. Set up replica set of 3 servers.&lt;br/&gt;
2. Insert 2000 docs, each 1K size.&lt;br/&gt;
3. Call getLastError(2), ie. wait for last write to reach at least two servers&lt;/p&gt;

&lt;p&gt;Problem: call never returns.&lt;/p&gt;

&lt;p&gt;However, works when only inserting 1000 docs.&lt;/p&gt;

&lt;p&gt;Servers log during problem:&lt;br/&gt;
m30002| Thu Sep  9 17:22:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up, at least from primary: 127.0.0.1:30000&lt;br/&gt;
m30002| Thu Sep  9 17:22:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet our last optime : Sep  9 17:22:43 4c895023:6&lt;br/&gt;
m30002| Thu Sep  9 17:22:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet oldest at 127.0.0.1:30000 : Sep  9 17:22:43 4c895023:c2&lt;br/&gt;
m30002| Thu Sep  9 17:22:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet See &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&lt;/a&gt;&lt;br/&gt;
m30002| Thu Sep  9 17:22:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up&lt;br/&gt;
m30000| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:61974 #15&lt;br/&gt;
m30001| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up, at least from primary: 127.0.0.1:30000&lt;br/&gt;
m30001| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet our last optime : Sep  9 17:22:43 4c895023:6&lt;br/&gt;
m30001| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet oldest at 127.0.0.1:30000 : Sep  9 17:22:43 4c895023:c2&lt;br/&gt;
m30001| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet See &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&lt;/a&gt;&lt;br/&gt;
m30001| Thu Sep  9 17:22:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up&lt;br/&gt;
m30000| Thu Sep  9 17:24:45 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; end connection 127.0.0.1:61973&lt;br/&gt;
m30000| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn15&amp;#93;&lt;/span&gt; end connection 127.0.0.1:61974&lt;br/&gt;
m30000| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:62005 #16&lt;br/&gt;
m30002| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up, at least from primary: 127.0.0.1:30000&lt;br/&gt;
m30002| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet our last optime : Sep  9 17:22:43 4c895023:6&lt;br/&gt;
m30002| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet oldest at 127.0.0.1:30000 : Sep  9 17:22:43 4c895023:c2&lt;br/&gt;
m30002| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet See &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&lt;/a&gt;&lt;br/&gt;
m30002| Thu Sep  9 17:24:46 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up&lt;br/&gt;
m30000| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:62006 #17&lt;br/&gt;
m30001| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up, at least from primary: 127.0.0.1:30000&lt;br/&gt;
m30001| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet our last optime : Sep  9 17:22:43 4c895023:6&lt;br/&gt;
m30001| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet oldest at 127.0.0.1:30000 : Sep  9 17:22:43 4c895023:c2&lt;br/&gt;
m30001| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet See &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Resyncing+a+Very+Stale+Replica+Set+Member&lt;/a&gt;&lt;br/&gt;
m30001| Thu Sep  9 17:24:47 &lt;span class=&quot;error&quot;&gt;&amp;#91;rs_sync&amp;#93;&lt;/span&gt; replSet error RS102 too stale to catch up&lt;/p&gt;</description>
                <environment>db version v1.7.1-pre-, pdfile version 4.5&lt;br/&gt;
Thu Sep  9 15:50:22 git version: 10f750fa617e7499a89e9a140d89ddb4a7427ad6</environment>
        <key id="13060">SERVER-1768</key>
            <summary>getLastError(2) hangs forever when &quot;replSet error RS102 too stale to catch up&quot;</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="kristina">Kristina Chodorow</assignee>
                                    <reporter username="tonyh">Tony Hannan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Sep 2010 21:35:31 +0000</created>
                <updated>Sat, 19 Sep 2015 00:11:34 +0000</updated>
                            <resolved>Thu, 21 Apr 2011 16:08:56 +0000</resolved>
                                    <version>1.7.0</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1020727" author="xgen-internal-githook" created="Wed, 2 Sep 2015 16:00:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18384&quot; title=&quot;implement find/getmore extensions w/ liveness support&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18384&quot;&gt;&lt;del&gt;SERVER-18384&lt;/del&gt;&lt;/a&gt; removed inactive test. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1768&quot; title=&quot;getLastError(2) hangs forever when &amp;quot;replSet error RS102 too stale to catch up&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1768&quot;&gt;&lt;del&gt;SERVER-1768&lt;/del&gt;&lt;/a&gt; was closed as works as designed&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5cf0aca99109ee132fd2f5da011eb6583b028d84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5cf0aca99109ee132fd2f5da011eb6583b028d84&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="29431" author="eliot" created="Thu, 21 Apr 2011 16:08:56 +0000"  >&lt;p&gt;There is no default timeout, so it&apos;ll wait forever correctly.&lt;/p&gt;</comment>
                            <comment id="18026" author="tonyh" created="Fri, 10 Sep 2010 18:50:31 +0000"  >&lt;p&gt;Not what I observed. Just repeated saying &quot;replSet error RS102 too stale to catch up&quot;&lt;/p&gt;</comment>
                            <comment id="18025" author="eliot" created="Fri, 10 Sep 2010 18:46:42 +0000"  >&lt;p&gt;Doesn&apos;t the secondary then start a resync?&lt;/p&gt;</comment>
                            <comment id="18020" author="tonyh" created="Fri, 10 Sep 2010 18:05:32 +0000"  >&lt;p&gt;According to Dwight, this happens when the oplog rolls over before the secondary can read it.&lt;br/&gt;
In this case, getLastError should return an error instead of hanging forever.&lt;/p&gt;</comment>
                            <comment id="18012" author="tonyh" created="Fri, 10 Sep 2010 14:53:34 +0000"  >&lt;p&gt;I just sent a pull request from TonyGen containing my test case.&lt;br/&gt;
Other test cases in jstest/replsets that use getLastError (replset2.js, replset5.js, and rollback.js) work for me, but this one does not.&lt;/p&gt;</comment>
                            <comment id="18011" author="dwight_10gen" created="Fri, 10 Sep 2010 14:19:08 +0000"  >&lt;p&gt;see replset2 or replset5.js&lt;br/&gt;
try:&lt;br/&gt;
mongo --nodb jstests/replsets/replset2.js&lt;/p&gt;</comment>
                            <comment id="18010" author="dwight_10gen" created="Fri, 10 Sep 2010 14:17:40 +0000"  >&lt;p&gt;tony, please take one of hte jstests/replsets/ and modify it s.t. it reproduces this.  then i can reproduce and we will also have a regression test forever.&lt;/p&gt;

&lt;p&gt;i would take one of the existing getlasterror tests there and modify iut.&lt;/p&gt;

&lt;p&gt;also a good place to start is to see if those tests pass for you on your box.&lt;/p&gt;

&lt;p&gt;once that is done, assign it back to me.&lt;br/&gt;
tx&lt;/p&gt;</comment>
                            <comment id="18004" author="tonyh" created="Fri, 10 Sep 2010 12:46:04 +0000"  >&lt;p&gt;Still hung after 45 minutes.&lt;/p&gt;</comment>
                            <comment id="17998" author="eliot" created="Thu, 9 Sep 2010 22:16:31 +0000"  >&lt;p&gt;This should recover...&lt;br/&gt;
How long did you let if go?&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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 9 Sep 2010 22:16:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 24 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>
                            8 years, 24 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>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>tonyh</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpffj:</customfieldvalue>

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

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

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