<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:00:16 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>[JAVA-3726] &quot;Parse lastWriteDate&quot; test requires a larger periodic noop write interval</title>
                <link>https://jira.mongodb.org/browse/JAVA-3726</link>
                <project id="10006" key="JAVA">Java 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="1345023">JAVA-3726</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="2">Won&apos;t Fix</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:40 +0000</created>
                <updated>Thu, 4 Jun 2020 17:28:42 +0000</updated>
                            <resolved>Thu, 4 Jun 2020 17:28:33 +0000</resolved>
                                                                    <component>Test Coverage</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3190801" author="jeff.yemin" created="Thu, 4 Jun 2020 17:28:33 +0000"  >&lt;p&gt;These tests were implemented as unit tests in the initial implementation of maxStaleness: see&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/69078736a625cb21d27dc02fbb0c6211eba42d7d#diff-f3f528c2279985a95e397ca6027944fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/69078736a625cb21d27dc02fbb0c6211eba42d7d#diff-f3f528c2279985a95e397ca6027944fa&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;At this point, it doesn&apos;t seem worth the effort to change the tests to integration tests.&#160; Closing as Won&apos;t Fix.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </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|hx7ovj:</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>