<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:04 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-4141] NumberLong.bottom does not return values </title>
                <link>https://jira.mongodb.org/browse/SERVER-4141</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;within the javascript shell several NumberLong.bottom, NumberLong.top does not return any value.&lt;/p&gt;

&lt;p&gt;s.&lt;br/&gt;
NumberLong(&quot;5188220513171889152&quot;).bottom&lt;/p&gt;

&lt;p&gt;while surrounding values seems correct.&lt;br/&gt;
NumberLong(&quot;5188220513171889151&quot;).bottom -&amp;gt; 2147572735&lt;br/&gt;
NumberLong(&quot;5188220513171889153&quot;).bottom -&amp;gt; 2147572737&lt;/p&gt;


&lt;p&gt;some more testcases:&lt;br/&gt;
NumberLong(&quot;5188220483643986944&quot;)&lt;br/&gt;
NumberLong(&quot;5188220484180857856&quot;)&lt;br/&gt;
NumberLong(&quot;5188220484717728768&quot;)&lt;br/&gt;
NumberLong(&quot;5188220485254599680&quot;)&lt;br/&gt;
NumberLong(&quot;5188220486328341504&quot;)&lt;br/&gt;
NumberLong(&quot;5188220486865212416&quot;)&lt;br/&gt;
NumberLong(&quot;5188220487402083328&quot;)&lt;br/&gt;
NumberLong(&quot;5188220487938954240&quot;)&lt;br/&gt;
NumberLong(&quot;5188220513171889152&quot;)&lt;br/&gt;
NumberLong(&quot;5188220517466856448&quot;)&lt;br/&gt;
NumberLong(&quot;5188220518003727360&quot;)&lt;br/&gt;
NumberLong(&quot;5188220518540598272&quot;)&lt;br/&gt;
NumberLong(&quot;5188220787512923136&quot;)&lt;br/&gt;
NumberLong(&quot;5188220788049794048&quot;)&lt;br/&gt;
NumberLong(&quot;5188220871264785408&quot;)&lt;br/&gt;
NumberLong(&quot;5188220871801656320&quot;)&lt;/p&gt;




</description>
                <environment>db.version() 2.0.1 (linux)&lt;br/&gt;
db.version() 1.8.1 (win)</environment>
        <key id="24033">SERVER-4141</key>
            <summary>NumberLong.bottom does not return values </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="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="93e7a16c">93e7a16c</reporter>
                        <labels>
                            <label>mapreduce,</label>
                            <label>query</label>
                    </labels>
                <created>Tue, 25 Oct 2011 11:36:17 +0000</created>
                <updated>Fri, 7 Apr 2023 13:08:34 +0000</updated>
                            <resolved>Fri, 27 Jan 2017 19:23:51 +0000</resolved>
                                    <version>1.8.1</version>
                    <version>2.0.1</version>
                                                    <component>JavaScript</component>
                    <component>Shell</component>
                                        <votes>3</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1487137" author="jason.carey" created="Fri, 27 Jan 2017 19:23:51 +0000"  >&lt;p&gt;After our change to SpiderMonkey, I don&apos;t believe this problem exists anymore (those fields are now mediated by special member functions, rather than sometimes being filled and sometimes not).&lt;/p&gt;</comment>
                            <comment id="75097" author="rubytuesdaydono" created="Wed, 21 Dec 2011 18:29:23 +0000"  >&lt;p&gt;Convenience methods would be very helpful to perform arithmetic using, e.g., Google Closure&apos;s &lt;a href=&quot;http://code.google.com/p/closure-library/source/browse/trunk/closure/goog/math/long.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;goog.math.Long&lt;/a&gt;.  For example, &lt;tt&gt;bitsTop()&lt;/tt&gt; could return &lt;tt&gt;0&lt;/tt&gt; and &lt;tt&gt;bitsBottom()&lt;/tt&gt; could return &lt;tt&gt;floatApprox&lt;/tt&gt; for smaller values representable as 54-bit floats without loss of precision; otherwise, they could return &lt;tt&gt;top&lt;/tt&gt; and &lt;tt&gt;bottom&lt;/tt&gt; (respectively).  &lt;/p&gt;</comment>
                            <comment id="70369" author="antoine" created="Fri, 2 Dec 2011 07:42:07 +0000"  >&lt;p&gt;we can improve the doc and add some convenience methods.&lt;/p&gt;</comment>
                            <comment id="64460" author="93e7a16c" created="Thu, 3 Nov 2011 14:22:34 +0000"  >&lt;p&gt;thank you for the Information. &lt;/p&gt;

&lt;p&gt;The distinction (if( top == null ) then value) can, of course, be done on application side.&lt;/p&gt;

&lt;p&gt;Without knowing those internal fields, working on a provided collection, there is no other way of evaluating arbitary stored 64bit values from NumberLong (afaik). For this I would like to vote, for having this fields externalized/documented.&lt;/p&gt;
</comment>
                            <comment id="62660" author="antoine" created="Wed, 26 Oct 2011 03:24:31 +0000"  >&lt;p&gt;It only uses top/bottom in case it cannot exactly represent the long value using a double value.&lt;br/&gt;
We could always set them, but they are not supposed to be used directly, it&apos;s more an internal field.&lt;/p&gt;</comment>
                            <comment id="62471" author="93e7a16c" created="Tue, 25 Oct 2011 12:23:04 +0000"  >&lt;p&gt;approx. failure in 40 cases out of 50000 values. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="141254">SERVER-14217</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_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, 26 Oct 2011 03:24:31 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 2 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>93e7a16c</customfieldvalue>
            <customfieldvalue>antoine</customfieldvalue>
            <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
            <customfieldvalue>rubytuesdaydono</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hronbr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsa22v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4747</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_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|hszu13:</customfieldvalue>

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