<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:42 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>[CDRIVER-3664] &quot;Parse lastWriteDate&quot; test requires a larger periodic noop write interval</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3664</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>
&lt;h4&gt;&lt;a name=&quot;DescriptionofDriversTicket%3A&quot;&gt;&lt;/a&gt;Description of Drivers Ticket:&lt;/h4&gt;
&lt;p&gt;    The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/max-staleness/max-staleness-tests.rst#parse-lastwritedate&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&quot;Parse lastWriteDate&quot; from the Max Staleness tests&lt;/a&gt; may not succeed if mongod is configured with periodicNoopIntervalSecs of 1.&lt;/p&gt;

&lt;p&gt;The test verifies that the client observes an increase in lastWriteDate after performing these steps (copied verbatim):&lt;/p&gt;

&lt;p&gt;1. Insert a document and wait one second.&lt;br/&gt;
2. Get the client&apos;s ServerDescription for the server. It must have a non-zero lastWriteDate.&lt;br/&gt;
3. Insert a document and wait one second.&lt;br/&gt;
4. Get the client&apos;s ServerDescription for the server.&lt;/p&gt;

&lt;p&gt;I believe this is due to setting the periodicNoopIntervalSecs to 1 in mongo orchestration from &lt;a href=&quot;https://github.com/10gen/mongo-orchestration/commit/066ec58c817947ca136c25690a705fd4e4db2a7b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this change&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;libmongoc&apos;s implementation of this test was inconsistently failing. And the resulting investigation (&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2985&quot; title=&quot;Investigate flaky test: /Client/last_write_date/pooled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2985&quot;&gt;&lt;del&gt;CDRIVER-2985&lt;/del&gt;&lt;/a&gt;) observed this was due to the periodic noop writer inserting shortly before step 2. Since lastWriteDate has second-level granularity, the insert of step 3 is applied within the same second. And both ServerDescriptions may end up reporting the same lastWriteDate by the end of the test.&lt;/p&gt;

&lt;p&gt;I think the most straightforward fix is to add another sleep between the first server selection and the insert, so they do not end up falling within the same second.&lt;br/&gt;
    See DRIVERS-1215 for updated details.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="1345019">CDRIVER-3664</key>
            <summary>&quot;Parse lastWriteDate&quot; test requires a larger periodic noop write interval</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 May 2020 19:50:38 +0000</created>
                <updated>Fri, 8 May 2020 19:51:47 +0000</updated>
                            <resolved>Fri, 8 May 2020 19:51:47 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="706312">CDRIVER-2985</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx7ov3:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>