<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:21:47 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-72428] filter/$match not working on 1970-01-01 for timeseries collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-72428</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When filtering a timestamp on january 1 1970 no document is returned.&lt;/p&gt;

&lt;p&gt;Minimal reproduction collection:&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/423922/423922_image-2022-12-29-17-32-06-976.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Filter&lt;br/&gt;
&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/423924/423924_image-2022-12-29-17-31-14-812.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/423923/423923_image-2022-12-29-17-31-40-393.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;$match:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/423921/423921_image-2022-12-29-17-33-19-851.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://jira.mongodb.org/secure/attachment/423920/423920_image-2022-12-29-17-33-54-751.png&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2221114">SERVER-72428</key>
            <summary>filter/$match not working on 1970-01-01 for timeseries collection</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="3">Duplicate</resolution>
                                        <assignee username="david.percy@mongodb.com">David Percy</assignee>
                                    <reporter username="thomas.merle@enerfox.fr">Thomas MERLE</reporter>
                        <labels>
                            <label>query-director-triage</label>
                    </labels>
                <created>Thu, 29 Dec 2022 16:35:46 +0000</created>
                <updated>Wed, 1 Mar 2023 17:18:15 +0000</updated>
                            <resolved>Wed, 1 Mar 2023 17:18:15 +0000</resolved>
                                    <version>5.0.14</version>
                    <version>6.0.2</version>
                    <version>6.0.3</version>
                                                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="5240942" author="david.percy" created="Wed, 1 Mar 2023 17:18:15 +0000"  >&lt;p&gt;Yes, this looks like a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69952&quot; title=&quot;Filtering on dates outside of the 32 bit epoch range returns wrong results&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69952&quot;&gt;&lt;del&gt;SERVER-69952&lt;/del&gt;&lt;/a&gt;.  I was able to reproduce Chris Kelly&apos;s example and confirm that &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69952&quot; title=&quot;Filtering on dates outside of the 32 bit epoch range returns wrong results&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69952&quot;&gt;&lt;del&gt;SERVER-69952&lt;/del&gt;&lt;/a&gt; fixes it.  This was happening because a time-series optimization was incorrectly handling dates too close to 1970-01-01 (closer than one bucketMaxSpanSeconds): internally it creates a predicate like {_id: ObjectId( ... 1970 - bucketMaxSpanSeconds ... )} which is outside the range an ObjectId can represent.&lt;/p&gt;</comment>
                            <comment id="5106214" author="JIRAUSER1258718" created="Wed, 11 Jan 2023 15:35:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=misha.tyulenev%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;misha.tyulenev@mongodb.com&quot;&gt;misha.tyulenev@mongodb.com&lt;/a&gt;, can you please help assign this to someone please? Thanks!&lt;/p&gt;</comment>
                            <comment id="5088233" author="JIRAUSER1259232" created="Tue, 3 Jan 2023 20:49:36 +0000"  >&lt;p&gt;Thanks for reproducing the issues. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=chris.kelly%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;chris.kelly@mongodb.com&quot;&gt;chris.kelly@mongodb.com&lt;/a&gt;&#160; The problem is the same as the one you referred to. Part of the fix went in 6.2 but another part is still to be completed (linked to by this ticket). Assigning now to the responsible team (QO).&#160;&lt;/p&gt;</comment>
                            <comment id="5082407" author="JIRAUSER1265262" created="Thu, 29 Dec 2022 22:18:22 +0000"  >&lt;p&gt;I ran the following tests on 5.0.14 and 6.0.2 through the mongo shell:&lt;br/&gt;
&#160;&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;query&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;timeseries collection&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;normal collection&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;db.test.find({ timestamp : { $gte : new Date(&quot;1970-01-01&quot;) }})&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;no output&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;db.test.find({ timestamp : { $gte : new Date(&quot;1970-01-01T12:00:000Z&quot;) }})&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;no output&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;db.test.aggregate(&lt;a href=&quot;file://%7B%24match:%20%7B%22timestamp%22:%20%7B%24gte:%20new%20date%28%221970-01-01%22%29%7D%7D%7D/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;{$match: {&quot;timestamp&quot;: {$gte: new Date(&quot;1970-01-01&quot;)}}}&lt;/a&gt;)&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;no output&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&#160;db.test.aggregate(&lt;a href=&quot;file://%7B%24match:%20%7B%22timestamp%22:%20%7B%24gte:%20new%20date%28%221970-01-01t12:00:000z%22%29%7D%7D%7D/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;{$match: {&quot;timestamp&quot;: {$gte: new Date(&quot;1970-01-01T12:00:000Z&quot;)}}}&lt;/a&gt;)&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;no output&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;correct&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;I&apos;ll pass this to the relevant team take a look. Thanks for your report!&lt;/p&gt;

&lt;p&gt;Christopher&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2144479">SERVER-69952</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2144479">SERVER-69952</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="423975" name="image-2022-12-29-17-15-16-618.png" size="168702" author="chris.kelly@mongodb.com" created="Thu, 29 Dec 2022 22:15:17 +0000"/>
                            <attachment id="423924" name="image-2022-12-29-17-31-14-812.png" size="16184" author="thomas.merle@enerfox.fr" created="Thu, 29 Dec 2022 16:31:16 +0000"/>
                            <attachment id="423923" name="image-2022-12-29-17-31-40-393.png" size="22826" author="thomas.merle@enerfox.fr" created="Thu, 29 Dec 2022 16:31:42 +0000"/>
                            <attachment id="423922" name="image-2022-12-29-17-32-06-976.png" size="29376" author="thomas.merle@enerfox.fr" created="Thu, 29 Dec 2022 16:32:08 +0000"/>
                            <attachment id="423921" name="image-2022-12-29-17-33-19-851.png" size="22477" author="thomas.merle@enerfox.fr" created="Thu, 29 Dec 2022 16:33:21 +0000"/>
                            <attachment id="423920" name="image-2022-12-29-17-33-54-751.png" size="17653" author="thomas.merle@enerfox.fr" created="Thu, 29 Dec 2022 16:33:56 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25126"><![CDATA[Query Optimization]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 29 Dec 2022 21:07:03 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        49 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-69952'>SERVER-69952</a></s>]]></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_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>david.percy@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            49 weeks 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>chris.kelly@mongodb.com</customfieldvalue>
            <customfieldvalue>david.percy@mongodb.com</customfieldvalue>
            <customfieldvalue>joseph.kanaan@mongodb.com</customfieldvalue>
            <customfieldvalue>rushan.chen@mongodb.com</customfieldvalue>
            <customfieldvalue>thomas.merle@enerfox.fr</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1ojs7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i173bc:</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="5931">QO 2023-02-06</customfieldvalue>
    <customfieldvalue id="5933">QO 2023-02-20</customfieldvalue>
    <customfieldvalue id="6991">QO 2023-03-06</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Filter on january first a timeseries collection on timestamp field&lt;/p&gt;</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>
                                    <customfieldvalue><![CDATA[chris.kelly@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1o5xj:</customfieldvalue>

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