<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:15:38 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>[CDRIVER-2572] Only enable counters for shared memory</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2572</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The shared memory counters fall back to using a regular malloc&apos;ed segment when shared memory is not available. This doesn&apos;t seem useful, and means we do an atomic increment every time an operation does an update. So instead, if shared memory segments aren&apos;t available, the counters should do nothing.&lt;/p&gt;

&lt;p&gt;Additionally, we don&apos;t have any tests that I&apos;m aware of for the contents of the shared-memory counters. So if we introduce bugs in incrementing the number of active cursors or the number of commands executed, etc., we won&apos;t catch it. Create some basic tests that counters are correctly incremented and decremented in response to driver events.&lt;/p&gt;</description>
                <environment></environment>
        <key id="517588">CDRIVER-2572</key>
            <summary>Only enable counters for shared memory</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="jesse@mongodb.com">A. Jesse Jiryu Davis</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Mar 2018 20:16:08 +0000</created>
                <updated>Sat, 28 Oct 2023 11:30:00 +0000</updated>
                            <resolved>Thu, 19 Apr 2018 13:42:18 +0000</resolved>
                                                    <fixVersion>1.10.0</fixVersion>
                                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1871719" author="xgen-internal-githook" created="Mon, 23 Apr 2018 18:27:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2572&quot; title=&quot;Only enable counters for shared memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2572&quot;&gt;&lt;del&gt;CDRIVER-2572&lt;/del&gt;&lt;/a&gt; cfg flags for trace and counters&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8ff2b68b57bb57a8bc66a368c14c88d77356d8f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8ff2b68b57bb57a8bc66a368c14c88d77356d8f3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1869982" author="xgen-internal-githook" created="Fri, 20 Apr 2018 14:01:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2572&quot; title=&quot;Only enable counters for shared memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2572&quot;&gt;&lt;del&gt;CDRIVER-2572&lt;/del&gt;&lt;/a&gt; remove unnecessary config flag&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/86264e652dc648ab8c3522c39f4d9f3160b6d3b5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/86264e652dc648ab8c3522c39f4d9f3160b6d3b5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1869136" author="xgen-internal-githook" created="Thu, 19 Apr 2018 18:02:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2572&quot; title=&quot;Only enable counters for shared memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2572&quot;&gt;&lt;del&gt;CDRIVER-2572&lt;/del&gt;&lt;/a&gt; fix tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/56c21826a84624d1a8a25476d5ae8605d5eae556&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/56c21826a84624d1a8a25476d5ae8605d5eae556&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1868704" author="xgen-internal-githook" created="Thu, 19 Apr 2018 13:41:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2572&quot; title=&quot;Only enable counters for shared memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2572&quot;&gt;&lt;del&gt;CDRIVER-2572&lt;/del&gt;&lt;/a&gt; fix counters and add tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/7ba7956ab57b3edeaa2973911999b26550714e12&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/7ba7956ab57b3edeaa2973911999b26550714e12&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1868703" author="xgen-internal-githook" created="Thu, 19 Apr 2018 13:41:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kevin.albertson@10gen.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;, &apos;name&apos;: &apos;Kevin Albertson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2572&quot; title=&quot;Only enable counters for shared memory&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2572&quot;&gt;&lt;del&gt;CDRIVER-2572&lt;/del&gt;&lt;/a&gt; disable counters if unsupported&lt;/p&gt;

&lt;p&gt;Counters have a fallback to use a malloc&apos;ed segment of memory if&lt;br/&gt;
shared memory isn&apos;t available. This isn&apos;t useful and adds&lt;br/&gt;
unnecessary overhead. If at compile-time counters cannot be enabled,&lt;br/&gt;
then remove them entirely.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/5175e83bd6d4bc00b8462550301f7b41c86f2dcf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/5175e83bd6d4bc00b8462550301f7b41c86f2dcf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1849527" author="kevin.albertson" created="Thu, 29 Mar 2018 19:14:22 +0000"  >&lt;p&gt;Going to do this as a dependency of refactoring cursor code.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="496948">CDRIVER-2502</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="534741">PHPC-1174</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htl073:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>