<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:02:02 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-65177] Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms</title>
                <link>https://jira.mongodb.org/browse/SERVER-65177</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description></description>
                <environment></environment>
        <key id="2014310">SERVER-65177</key>
            <summary>Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="ali.mir@mongodb.com">Ali Mir</assignee>
                                    <reporter username="ali.mir@mongodb.com">Ali Mir</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Apr 2022 16:03:13 +0000</created>
                <updated>Sun, 29 Oct 2023 21:40:09 +0000</updated>
                            <resolved>Tue, 23 Aug 2022 20:31:58 +0000</resolved>
                                                    <fixVersion>5.0.15</fixVersion>
                    <fixVersion>6.0.4</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5042232" author="xgen-internal-githook" created="Thu, 8 Dec 2022 22:05:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ali-mir&apos;, &apos;email&apos;: &apos;ali.mir@mongodb.com&apos;, &apos;username&apos;: &apos;ali-mir&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65177&quot; title=&quot;Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65177&quot;&gt;&lt;del&gt;SERVER-65177&lt;/del&gt;&lt;/a&gt; Use executor clock to calculate elapsed initial sync time&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 9d47a813c02607ff8fb4fbc50b544ebeb494ce85)&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/198cd42e240e7ae8d2cc06250dccb67deda169ad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/198cd42e240e7ae8d2cc06250dccb67deda169ad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5042076" author="xgen-internal-githook" created="Thu, 8 Dec 2022 21:27:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ali-mir&apos;, &apos;email&apos;: &apos;ali.mir@mongodb.com&apos;, &apos;username&apos;: &apos;ali-mir&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65177&quot; title=&quot;Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65177&quot;&gt;&lt;del&gt;SERVER-65177&lt;/del&gt;&lt;/a&gt; Use executor clock to calculate elapsed initial sync time&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 9d47a813c02607ff8fb4fbc50b544ebeb494ce85)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d4b0442a5b0ddf6351940c3722908a88ac1de181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d4b0442a5b0ddf6351940c3722908a88ac1de181&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4771611" author="xgen-internal-githook" created="Tue, 23 Aug 2022 20:15:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ali-mir&apos;, &apos;email&apos;: &apos;ali.mir@mongodb.com&apos;, &apos;username&apos;: &apos;ali-mir&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65177&quot; title=&quot;Elapsed initial sync time in TestRemainingInitialSyncEstimatedMillisMetric unit test can be 0 ms&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65177&quot;&gt;&lt;del&gt;SERVER-65177&lt;/del&gt;&lt;/a&gt; Use executor clock to calculate elapsed initial sync time&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9d47a813c02607ff8fb4fbc50b544ebeb494ce85&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9d47a813c02607ff8fb4fbc50b544ebeb494ce85&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4488957" author="ali.mir" created="Mon, 18 Apr 2022 18:42:27 +0000"  >&lt;p&gt;To start, we will change the assertion for the totalInitialSyncElapsedMillis to be greater than or equal to zero to reduce evergreen redness.&lt;/p&gt;</comment>
                            <comment id="4488954" author="ali.mir" created="Mon, 18 Apr 2022 18:41:58 +0000"  >&lt;p&gt;In the initial syncer, we use &lt;tt&gt;exec-&amp;gt;now()&lt;/tt&gt; for the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5689f05/src/mongo/db/repl/initial_syncer.cpp#L549&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;initialSyncStart&lt;/a&gt;, and &lt;tt&gt;Date_t::now()&lt;/tt&gt; for the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5689f05/src/mongo/db/repl/initial_syncer.cpp#L2190&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;elapsed duration&lt;/a&gt;. We are repurposing this ticket to modify the assignment of the elapsed duration to use the task executor clock, which should stop the failing test from relying on real time.&lt;/p&gt;</comment>
                            <comment id="4481881" author="ali.mir" created="Wed, 13 Apr 2022 21:33:03 +0000"  >&lt;p&gt;Putting back into Needs Triage so we can discuss the best course of action as a team. Currently, we have consistent duplicates of this BF on enterprise-macos-rosetta-2 and enterprise-macos-arm64. I don&apos;t immediately think there is a bug with retrieving a time value in macOS, since &lt;a href=&quot;https://github.com/10gen/mongo/blob/53eaaa11e4e19029a714c2db6d243af3b5fbbd68/src/mongo/util/time_support.cpp#L814&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;we appear to still use&lt;/a&gt; the &lt;tt&gt;gettimeofday&lt;/tt&gt; system call (same as other non-Windows operating systems).&lt;/p&gt;</comment>
                            <comment id="4481813" author="ali.mir" created="Wed, 13 Apr 2022 21:28:55 +0000"  >&lt;p&gt;The fix for this ended up being a little tricky. We calculate the elapsed time for initial sync by first setting the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/87393ce9bcfe06f8aa93b856474fb77bfb3a5267/src/mongo/db/repl/initial_syncer.cpp#L549&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;initialSyncStart&lt;/a&gt;, and then during progress reporting, get the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/87393ce9bcfe06f8aa93b856474fb77bfb3a5267/src/mongo/db/repl/initial_syncer.cpp#L2190&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;elapsedDurationEnd&lt;/a&gt;. We then find the difference of these values to report the totalInitialSyncElapsedMillis.&lt;/p&gt;

&lt;p&gt;The linked BF occurred because this test ran very fast, and so the elapsed time was cast to be 0 milliseconds. Initially, I thought we could advance the network clock so that the elapsed time would always be greater than 0, but then I realized this defeats the purpose of the assertion, since we won&apos;t be testing anything if the value is always greater than 0.&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>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <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>Tue, 23 Aug 2022 01:49:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 8 weeks, 6 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, 8 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ali.mir@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0pfn3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i08fg4:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5710">Repl 2022-04-04</customfieldvalue>
    <customfieldvalue id="5995">Repl 2022-05-02</customfieldvalue>
    <customfieldvalue id="6170">Repl 2022-05-16</customfieldvalue>
    <customfieldvalue id="6248">Repl 2022-05-30</customfieldvalue>
    <customfieldvalue id="6249">Repl 2022-06-13</customfieldvalue>
    <customfieldvalue id="6250">Repl 2022-06-27</customfieldvalue>
    <customfieldvalue id="6251">Repl 2022-07-11</customfieldvalue>
    <customfieldvalue id="6253">Repl 2022-08-08</customfieldvalue>
    <customfieldvalue id="6339">Repl 2022-08-22</customfieldvalue>
    <customfieldvalue id="6340">Repl 2022-09-05</customfieldvalue>
    <customfieldvalue id="6385">Repl 2022-07-25</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|i0p1sf:</customfieldvalue>

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