<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:14:26 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-69797] Negative bytes read metric  in slow query log lines</title>
                <link>https://jira.mongodb.org/browse/SERVER-69797</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This result was identified while diagnosing a performance issue on Atlas.&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;{find: projectDocument filter: {_and: &lt;a href=&quot;file://%7Bopportunities.orderinfo.ordernumber:%20%7B_exists:%20true%20_ne:%20null%7D%7D%2C%20//%7Bopportunities.orderInfo.cwOrderId:%20%7B_exists:%20false%7D%7D&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;\\\{opportunities.orderInfo.orderNumber: {_exists: true _ne: null}}, \\\{opportunities.orderInfo.cwOrderId: {_exists: false}}&lt;/a&gt;} _db: rhdo-gallery-project-service-staging _clusterTime: {clusterTime: {_timestamp: {t: 1645959584 i: 2}} signature: {hash: {_binary: {base64: WK0oU7yTsO1sL5k3qTq5y4OnZrM= subType: 0}} keyId: 7005939129837945000}} lsid: {id: {_uuid: 0c6daeb3-bbe5-4be5-99e3-93cbf21c6563}}} planSummary: IXSCAN&lt;br/&gt;
Unknown macro: { opportunities.orderInfo.cwOrderId}&lt;br/&gt;
keysExamined: 111623 docsExamined: 109506 cursorExhausted: true numYields: 4993 nreturned: 23 queryHash: 274C58B8 planCacheKey: 1A09723E reslen: 985644 locks: {ReplicationStateTransition: {acquireCount: {w: 4994}} Global: {acquireCount: {r: 4994}} Database: {acquireCount: {r: 4994}} Collection: {acquireCount: {r: 4994}} Mutex:&lt;br/&gt;
Unknown macro: {acquireCount}&lt;br/&gt;
}} &lt;b&gt;storage: {data: {bytesRead: -1890016436&lt;/b&gt; timeReadingMicros: 158488225}}protocol: op_msg durationMillis: 159718&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;The server was behaving normally, albeit with fairly degraded performance due to the workload. This entry was identified while reviewing the logs for potential index optimizations.&lt;/p&gt;

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

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2140485">SERVER-69797</key>
            <summary>Negative bytes read metric  in slow query log lines</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="5">Cannot Reproduce</resolution>
                                        <assignee username="henrik.edin@mongodb.com">Henrik Edin</assignee>
                                    <reporter username="khalen.fredieu@mongodb.com">Khalen Fredieu</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Sep 2022 14:49:24 +0000</created>
                <updated>Wed, 12 Apr 2023 17:37:36 +0000</updated>
                            <resolved>Wed, 12 Apr 2023 17:37:36 +0000</resolved>
                                    <version>4.4.12</version>
                                                                        <votes>1</votes>
                                    <watches>19</watches>
                                                                                                                <comments>
                            <comment id="4933640" author="gregory.noma" created="Thu, 27 Oct 2022 20:00:18 +0000"  >&lt;p&gt;For the storage stats, there isn&apos;t anywhere obvious in MongoDB that we are transitioning the values through a 32-bit integer. WiredTiger returns its statistics as an unsigned 64-bit integer. In order to be able to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp#L151&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;serialize these statistics to BSON&lt;/a&gt;, we &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp#L120&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;cast this value to a signed 64-bit integer&lt;/a&gt;. In order to prevent overflow, during the cast we &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/storage/wiredtiger/wiredtiger_util.h#L379-L393&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;clamp the value to the maximum value of a signed 64-bit integer&lt;/a&gt;. However, we also have the ability to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.h#L68-L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;add statistics together&lt;/a&gt;, and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/storage/wiredtiger/wiredtiger_recovery_unit.cpp#L176&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;for this addition we do not do the clamping&lt;/a&gt; (and thus overflow is possible). In particular, we use this functionality for &lt;a href=&quot;https://github.com/mongodb/mongo/blob/3fd2cc553a27067f4662a0708cd2e98cd122dffb/src/mongo/db/transaction/transaction_metrics_observer.cpp#L193&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;reporting the stats from a multi-document transaction&lt;/a&gt;. Note that as a signed 64-bit integer, the maximum possible value of this stat is 9223 petabytes &amp;#8211; not a value that would be seen in practice.&lt;/p&gt;

&lt;p&gt;One potential theory is that WT erroneously returned values for this statistic that were close to or greater than the maximum value of a signed 64-bit integer. Then if this were part of a multi-document transaction, we could have added these values together and overflowed to get the observed value of &lt;tt&gt;-1890016436&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="4922452" author="gregory.noma" created="Mon, 24 Oct 2022 15:19:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=khalen.fredieu%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;khalen.fredieu@mongodb.com&quot;&gt;khalen.fredieu@mongodb.com&lt;/a&gt; did you only see this occur in this one particular slow query log line or was it repeated?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2170977">WT-10066</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2166311">SERVER-70830</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 20 Sep 2022 15:09:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 14 weeks, 6 days 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/WT-10066'>WT-10066</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-3023</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>henrik.edin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 14 weeks, 6 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>gregory.noma@mongodb.com</customfieldvalue>
            <customfieldvalue>henrik.edin@mongodb.com</customfieldvalue>
            <customfieldvalue>khalen.fredieu@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1avxz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1ifjk:c</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="6594">Execution Team 2023-02-20</customfieldvalue>
    <customfieldvalue id="6685">Execution Team 2023-02-06</customfieldvalue>
    <customfieldvalue id="6773">Execution Team 2023-03-06</customfieldvalue>
    <customfieldvalue id="6816">Execution Team 2023-03-20</customfieldvalue>
    <customfieldvalue id="6820">Execution Team 2023-04-17</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;Unknown&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>
                                

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

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