<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:39:54 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-56676] improve handling of large/NaN values for expireAfterSeconds TTL index option</title>
                <link>https://jira.mongodb.org/browse/SERVER-56676</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The TTLMonitor is responsible for removing expired documents from a collection with a &lt;a href=&quot;https://docs.mongodb.com/manual/core/index-ttl/#ttl-indexes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TTL index&lt;/a&gt;. The &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.collection.createIndex/#options-for-all-index-types&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;expireAfterSeconds&lt;/a&gt; option is a numerical value that is used to calculate the expiration time for removing documents.&lt;/p&gt;

&lt;p&gt;Currently, the TTLMonitor ensures that this option is a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/ttl.cpp#L377&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;numerical type&lt;/a&gt; but &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/bson/bsonelement.h#L396&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;does not check&lt;/a&gt; for NaN or values that exceed the range of a &lt;tt&gt;long long&lt;/tt&gt; type.&lt;/p&gt;

&lt;p&gt;To handle existing TTL indexes that may contain unrepresentable values, we should consider extracting the expireAfterSeconds option using &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/bson/bsonelement.h#L403&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;BSON::safeNumberLong()&lt;/a&gt; instead. We would still be able to evaluate a reasonable expiration time from the safely converted numerical value.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1702374">SERVER-56676</key>
            <summary>improve handling of large/NaN values for expireAfterSeconds TTL index option</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="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="benety.goh@mongodb.com">Benety Goh</reporter>
                        <labels>
                    </labels>
                <created>Wed, 5 May 2021 17:40:22 +0000</created>
                <updated>Sun, 29 Oct 2023 21:54:00 +0000</updated>
                            <resolved>Fri, 7 May 2021 16:49:19 +0000</resolved>
                                                    <fixVersion>5.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="4709375" author="xgen-internal-githook" created="Wed, 27 Jul 2022 17:20:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56676&quot; title=&quot;improve handling of large/NaN values for expireAfterSeconds TTL index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56676&quot;&gt;&lt;del&gt;SERVER-56676&lt;/del&gt;&lt;/a&gt; TTLMonitor handles NaN/out of range values when extracting expireAfterSeconds&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 8ff8a14216bef7f7d6fd7720a9727886f529e287.&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7b9299a77fe5fa76b4e019575f38c21ff990c86b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7b9299a77fe5fa76b4e019575f38c21ff990c86b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4709336" author="xgen-internal-githook" created="Wed, 27 Jul 2022 17:07:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56676&quot; title=&quot;improve handling of large/NaN values for expireAfterSeconds TTL index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56676&quot;&gt;&lt;del&gt;SERVER-56676&lt;/del&gt;&lt;/a&gt; TTLMonitor handles NaN/out of range values when extracting expireAfterSeconds&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 921c4514352f572bc64b78f068d765206c12e301.&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/eef44cd56b1cc11e5771736fa6cb3077e0228be2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/eef44cd56b1cc11e5771736fa6cb3077e0228be2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4708075" author="xgen-internal-githook" created="Wed, 27 Jul 2022 11:05:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56676&quot; title=&quot;improve handling of large/NaN values for expireAfterSeconds TTL index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56676&quot;&gt;&lt;del&gt;SERVER-56676&lt;/del&gt;&lt;/a&gt; TTLMonitor handles NaN/out of range values when extracting expireAfterSeconds&lt;/p&gt;

&lt;p&gt;(cherry picked from commit daa37e38c73b0eed3ef91d7156e71f7aa6028e42)&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/921c4514352f572bc64b78f068d765206c12e301&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/921c4514352f572bc64b78f068d765206c12e301&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4708059" author="benety.goh" created="Wed, 27 Jul 2022 10:53:09 +0000"  >&lt;p&gt;The 4.4 and 4.2 backports do not use the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/4b95014f05755a197d81f97879a24c9a6e5c535d/src/mongo/db/ttl.cpp#L279&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;safeExpirationDate() function&lt;/a&gt; added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54007&quot; title=&quot;Perform TTL deletions on clustered indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54007&quot;&gt;&lt;del&gt;SERVER-54007&lt;/del&gt;&lt;/a&gt;, which was intended to handle time-series collections. This does not change the calculation of the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/4b95014f05755a197d81f97879a24c9a6e5c535d/src/mongo/db/ttl.cpp#L290&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TTL expiration&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="4707044" author="xgen-internal-githook" created="Tue, 26 Jul 2022 21:11:35 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56676&quot; title=&quot;improve handling of large/NaN values for expireAfterSeconds TTL index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56676&quot;&gt;&lt;del&gt;SERVER-56676&lt;/del&gt;&lt;/a&gt; TTLMonitor handles NaN/out of range values when extracting expireAfterSeconds&lt;/p&gt;

&lt;p&gt;(cherry picked from commit daa37e38c73b0eed3ef91d7156e71f7aa6028e42)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8ff8a14216bef7f7d6fd7720a9727886f529e287&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8ff8a14216bef7f7d6fd7720a9727886f529e287&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3759983" author="xgen-internal-githook" created="Thu, 6 May 2021 22:25:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benety Goh&apos;, &apos;email&apos;: &apos;benety@mongodb.com&apos;, &apos;username&apos;: &apos;benety&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56676&quot; title=&quot;improve handling of large/NaN values for expireAfterSeconds TTL index option&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56676&quot;&gt;&lt;del&gt;SERVER-56676&lt;/del&gt;&lt;/a&gt; TTLMonitor handles NaN/out of range values when extracting expireAfterSeconds&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/daa37e38c73b0eed3ef91d7156e71f7aa6028e42&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/daa37e38c73b0eed3ef91d7156e71f7aa6028e42&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="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2098900">SERVER-68283</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1895441">SERVER-60607</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2100778">SERVER-68359</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2105169">SERVER-68522</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1920762">SERVER-61321</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1599101">SERVER-54007</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001mepuIQAQ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 6 May 2021 22:25:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 28 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_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, 28 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>115.0</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>benety.goh@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|hz8hdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hytav3:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4828">Execution Team 2021-05-17</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|hz83n3:</customfieldvalue>

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