<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:55:00 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-20696] Aggregation Suite Failure in server6190.js </title>
                <link>https://jira.mongodb.org/browse/SERVER-20696</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Issue:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;On ppc64le VM, Aggregation suite is failing with error at line# 20 in server6190.js as&lt;br/&gt;
          E QUERY    &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; Error: &lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; != &lt;span class=&quot;error&quot;&gt;&amp;#91;52&amp;#93;&lt;/span&gt; are not equal : undefined :&lt;/li&gt;
	&lt;li&gt;On another VM of mine which is x86, it passed&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Cause:&lt;br/&gt;
I investigated this area of mongodb code by putting logs on both ppc64le as well x86 VMs in &lt;br/&gt;
1.	Function int ExpressionWeek::extract(const tm&amp;amp; tm) in src/mongo/db/pipeline/expression.cpp and &lt;br/&gt;
2.	function time_t Value::coerceToTimeT() const in src/mongo/db/pipeline/value.cpp&lt;br/&gt;
        o	This function  calls gmtime &lt;br/&gt;
Log output gave me different results as expected. The difference in output of gmtime was exactly 9.5 hrs. &lt;/p&gt;

&lt;p&gt;When I checked system date, I found x86 VM had date in EDT timezone whereas ppc64le has in IST. Difference in IST time and EDT time is also 9.5 hrs.&lt;/p&gt;

&lt;p&gt;Hence, on machines with IST timezone (there could be others timezones too), this test suite fails in calculating week number for given date owing to the difference in current time (milliseconds since epoch time differs for different timezones).&lt;/p&gt;

&lt;p&gt;Solution:&lt;br/&gt;
By changing system timezone and date to EDT on ppc64le, the test case simply passes. Seems the server code and expected output in test case assertions have been written considering EDT or similar timezone.&lt;/p&gt;

&lt;p&gt;Hence, this is a bug which is not specific to ppc64le but a common problem when you&apos;ve different timezone set.&lt;/p&gt;</description>
                <environment></environment>
        <key id="232117">SERVER-20696</key>
            <summary>Aggregation Suite Failure in server6190.js </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="9">Done</resolution>
                                        <assignee username="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="npanpaliya">Nishidha</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Sep 2015 05:50:35 +0000</created>
                <updated>Thu, 25 Aug 2016 19:28:24 +0000</updated>
                            <resolved>Thu, 1 Oct 2015 15:01:51 +0000</resolved>
                                    <version>3.1.8</version>
                                    <fixVersion>3.1.9</fixVersion>
                                    <component>Aggregation Framework</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1051016" author="ramon.fernandez" created="Mon, 5 Oct 2015 14:11:28 +0000"  >&lt;p&gt;Thanks for confirming the fix &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=npanpaliya&quot; class=&quot;user-hover&quot; rel=&quot;npanpaliya&quot;&gt;npanpaliya&lt;/a&gt;. The fix will be included in the next development release (3.1.9), and I&apos;m also requesting a backport to the v3.0 branch.&lt;/p&gt;</comment>
                            <comment id="1050958" author="npanpaliya" created="Mon, 5 Oct 2015 13:35:55 +0000"  >&lt;p&gt;Thank you &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ramon.fernandez&quot; class=&quot;user-hover&quot; rel=&quot;ramon.fernandez&quot;&gt;ramon.fernandez&lt;/a&gt; for fixing this. I verified this test with the latest code of mongod server and the test passed.&lt;/p&gt;

&lt;p&gt;Could you also please confirm the server version in which this fix has been released? I see 3.1.9 in version.json in the latest code. Is that correct?&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Nishidha&lt;/p&gt;</comment>
                            <comment id="1048686" author="ramon.fernandez" created="Thu, 1 Oct 2015 15:01:51 +0000"  >&lt;p&gt;Thanks for reporting this &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=npanpaliya&quot; class=&quot;user-hover&quot; rel=&quot;npanpaliya&quot;&gt;npanpaliya&lt;/a&gt;, we&apos;ve fixed the test to work on all time zones.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/jstests/aggregation/bugs/server6190.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Here&apos;s the new version of the test&lt;/a&gt;, feel free to give it a try and report back.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1048677" author="xgen-internal-githook" created="Thu, 1 Oct 2015 14:57:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Ramon Fernandez&apos;, u&apos;email&apos;: u&apos;ramon@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-20696&quot; title=&quot;Aggregation Suite Failure in server6190.js &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-20696&quot;&gt;&lt;del&gt;SERVER-20696&lt;/del&gt;&lt;/a&gt; make  testing TZ-independent&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/114ad4ae31112a730591fdd987d5ad0028e33bf2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/114ad4ae31112a730591fdd987d5ad0028e33bf2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1047251" author="ramon.fernandez" created="Wed, 30 Sep 2015 12:45:33 +0000"  >&lt;p&gt;Thanks for the detailed report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=npanpaliya&quot; class=&quot;user-hover&quot; rel=&quot;npanpaliya&quot;&gt;npanpaliya&lt;/a&gt;, we&apos;re investigating.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.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>Wed, 30 Sep 2015 12:45:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 19 weeks, 2 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_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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 19 weeks, 2 days 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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>npanpaliya</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkt6f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsdetj:</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_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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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