<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:08:41 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-67650] Resharding recipient can return remainingOperationTimeEstimatedSecs=0 when the oplog applier hasn&apos;t caught up with the oplog fetcher</title>
                <link>https://jira.mongodb.org/browse/SERVER-67650</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If a recipient receives a _shardsvrReshardingOperationTime command right after it has transitioned to the &quot;applying&quot; state (i.e. oplogEntriesApplied = 0), &apos;remainingOperationTimeEstimatedSecs&apos; would be calculated &lt;a href=&quot;https://github.com/10gen/mongo/blob/2c49a73a91cadd788b987671939f60f292bf693f/src/mongo/db/s/resharding/resharding_metrics.cpp#L270&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;using &apos;bytesCopied&apos; and &apos;bytesToCopy&apos;&lt;/a&gt;, and the elapsed time of the &quot;cloning&quot; state.&lt;/p&gt;

&lt;p&gt;It turns out that the start time of the &quot;cloning&quot; state only gets &lt;a href=&quot;https://github.com/10gen/mongo/blob/fad6f99dcc35f3effd7a198dc61ceacb9437f175/src/mongo/db/s/resharding/resharding_recipient_service.cpp#L799&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;initialized&lt;/a&gt; when a recipient transitions from &quot;create-collection&quot; the &quot;cloning&quot; state. If the ReshardingRecipientService instance is created while the the recipient (i.e. on restart or stepup) is already the &quot;cloning&quot; state, we would skip&#160;the &lt;a href=&quot;https://github.com/10gen/mongo/blob/fad6f99dcc35f3effd7a198dc61ceacb9437f175/src/mongo/db/s/resharding/resharding_recipient_service.cpp#L539&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;state transition&lt;/a&gt; so the start time would be uninitialized. Consequently, &apos;remainingOperationTimeEstimatedSecs&apos; would be 0 since the &lt;a href=&quot;https://github.com/10gen/mongo/blob/2c49a73a91cadd788b987671939f60f292bf693f/src/mongo/db/s/resharding/resharding_metrics.cpp#L187&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;elapsed time for the cloning state would be 0&lt;/a&gt;. The issue here is also that There isn&apos;t a mechanism for persisting the start time and recovering it on stepup. Returning remainingOperationTimeEstimatedSecs=0 would cause the coordinator to think that it can start the critical section and the resharding operation to fail with ReshardingCriticalSectionTimeout if the recipient doesn&apos;t manage to enter the &quot;strict-consistency&quot; state within the timeout .&lt;/p&gt;

&lt;p&gt;The same bug exists for the &lt;a href=&quot;https://github.com/10gen/mongo/blob/2c49a73a91cadd788b987671939f60f292bf693f/src/mongo/db/s/resharding/resharding_metrics.cpp#L264-L265&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;start time for the &quot;applying&quot; state.&lt;/a&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2079608">SERVER-67650</key>
            <summary>Resharding recipient can return remainingOperationTimeEstimatedSecs=0 when the oplog applier hasn&apos;t caught up with the oplog fetcher</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="13201">Fixed</resolution>
                                        <assignee username="andrew.witten@mongodb.com">Andrew Witten</assignee>
                                    <reporter username="cheahuychou.mao@mongodb.com">Cheahuychou Mao</reporter>
                        <labels>
                            <label>sharding-nyc-subteam2</label>
                    </labels>
                <created>Wed, 29 Jun 2022 15:44:16 +0000</created>
                <updated>Sun, 29 Oct 2023 21:36:13 +0000</updated>
                            <resolved>Thu, 11 Aug 2022 14:39:25 +0000</resolved>
                                    <version>5.3.0</version>
                    <version>5.0.0</version>
                    <version>6.0.0-rc12</version>
                                    <fixVersion>5.0.13</fixVersion>
                    <fixVersion>6.0.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4820263" author="xgen-internal-githook" created="Mon, 12 Sep 2022 19:25:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andrew Witten&apos;, &apos;email&apos;: &apos;andrew.witten@mongodb.com&apos;, &apos;username&apos;: &apos;awitten1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67650&quot; title=&quot;Resharding recipient can return remainingOperationTimeEstimatedSecs=0 when the oplog applier hasn&amp;#39;t caught up with the oplog fetcher&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67650&quot;&gt;&lt;del&gt;SERVER-67650&lt;/del&gt;&lt;/a&gt; persist additional recipient resharding metrics&lt;/p&gt;

&lt;p&gt;(cherry picked from commit bbc0bb5e9878e48b6bc3b666affbdf102b379450)&lt;/p&gt;

&lt;p&gt;fix comilation errors after cherry-pick&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5a750e26658c06386d16291e4cf55e05e3379dbe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5a750e26658c06386d16291e4cf55e05e3379dbe&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4819054" author="JIRAUSER1253381" created="Mon, 12 Sep 2022 14:52:23 +0000"  >&lt;p&gt;Code review:&lt;/p&gt;

&lt;p&gt;BACKPORT-13391&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/mongo/pull/7283&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo/pull/7283&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Base branch: v5.0.&lt;/p&gt;</comment>
                            <comment id="4795098" author="max.hirschhorn@10gen.com" created="Thu, 1 Sep 2022 14:11:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andrew Witten&apos;, &apos;email&apos;: &apos;andrew.witten@mongodb.com&apos;, &apos;username&apos;: &apos;awitten1&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67650&quot; title=&quot;Resharding recipient can return remainingOperationTimeEstimatedSecs=0 when the oplog applier hasn&amp;#39;t caught up with the oplog fetcher&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67650&quot;&gt;&lt;del&gt;SERVER-67650&lt;/del&gt;&lt;/a&gt; persist additional recipient resharding metrics&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bbc0bb5e9878e48b6bc3b666affbdf102b379450&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bbc0bb5e9878e48b6bc3b666affbdf102b379450&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2079749">SERVER-67653</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Jul 2022 13:14:37 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 21 weeks, 2 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 21 weeks, 2 days ago
                        </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>andrew.witten@mongodb.com</customfieldvalue>
            <customfieldvalue>cheahuychou.mao@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i10hen:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrfs71:j</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </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|i103jz:</customfieldvalue>

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