<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:12:45 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-1504] Provide a way to suppress mongoc warning message  for counters</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-1504</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;We need to suppress the following warning message from going out to stdout&lt;br/&gt;
WARNING:       mongoc: Falling back to malloc for counters.&lt;/p&gt;

&lt;p&gt;Currently we are disabling mongo-c performance counters by default (by setting MONGOC_DISABLE_SHM) but because of that users are seeing the warning message on the console and we would like to suppress that.&lt;/p&gt;

&lt;p&gt;It will fine even if the fix is available in later version of the Mongo C Driver.&lt;/p&gt;</description>
                <environment>Red Hat Linux</environment>
        <key id="312733">CDRIVER-1504</key>
            <summary>Provide a way to suppress mongoc warning message  for counters</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="bjori">Hannes Magnusson</assignee>
                                    <reporter username="tanmoy.palit@shell.com">Tanmoy Palit</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Tue, 30 Aug 2016 13:14:26 +0000</created>
                <updated>Tue, 20 Sep 2016 18:52:31 +0000</updated>
                            <resolved>Tue, 20 Sep 2016 18:51:21 +0000</resolved>
                                    <version>1.3.3</version>
                                    <fixVersion>1.4.1</fixVersion>
                    <fixVersion>1.5.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1389109" author="jesse" created="Tue, 20 Sep 2016 18:51:21 +0000"  >&lt;p&gt;Cherry-picked to r1.4 branch: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8c6ae3f1de36953a36e6c599d467b0300e6e7982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8c6ae3f1de36953a36e6c599d467b0300e6e7982&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1389100" author="xgen-internal-githook" created="Tue, 20 Sep 2016 18:46:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1504&quot; title=&quot;Provide a way to suppress mongoc warning message  for counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1504&quot;&gt;&lt;del&gt;CDRIVER-1504&lt;/del&gt;&lt;/a&gt; Don&apos;t warn when intentionally disabled&lt;br/&gt;
Branch: r1.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/8c6ae3f1de36953a36e6c599d467b0300e6e7982&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/8c6ae3f1de36953a36e6c599d467b0300e6e7982&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1373853" author="xgen-internal-githook" created="Wed, 31 Aug 2016 19:48:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-1504&quot; title=&quot;Provide a way to suppress mongoc warning message  for counters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-1504&quot;&gt;&lt;del&gt;CDRIVER-1504&lt;/del&gt;&lt;/a&gt; Don&apos;t warn when intentionally disabled&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/48c4bd710db66a5232e3b7ad4c76f45a42e47dfd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/48c4bd710db66a5232e3b7ad4c76f45a42e47dfd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1372412" author="tanmoy.palit@shell.com" created="Tue, 30 Aug 2016 18:48:30 +0000"  >&lt;p&gt;Thanks.&lt;br/&gt;
We have our own data distribution which resides in the shared-memory of a cluster environment. &lt;br/&gt;
Mongo shm counters are turned off just to be safe so that it does not create additional files in shared memory.&lt;/p&gt;</comment>
                            <comment id="1372386" author="bjori" created="Tue, 30 Aug 2016 18:29:50 +0000"  >&lt;p&gt;Yes, &lt;tt&gt;--disable-shm-counters&lt;/tt&gt; will not compile them in at all, so the codepath is much simplified then disabling them at runtime, which erroneously winds up printing that warning.&lt;/p&gt;

&lt;p&gt;Out of curiosity, why are you disabling them? They shouldn&apos;t have any affect on the use of the driver, so I&apos;m curious why you&apos;d disable them &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                            <comment id="1372268" author="tanmoy.palit@shell.com" created="Tue, 30 Aug 2016 17:44:06 +0000"  >&lt;p&gt;Just to clarify, so I can build 1.3.3 driver with --disable-shm-counters options to disable the message. I don&apos;t need latest driver version right?&lt;/p&gt;</comment>
                            <comment id="1372019" author="bjori" created="Tue, 30 Aug 2016 16:19:42 +0000"  >&lt;p&gt;If you have no need for them, you can configure the driver with &lt;tt&gt;--disable-shm-counters&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;That warning isn&apos;t particularly useful, we should probably remove it&lt;/p&gt;</comment>
                    </comments>
                    <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|hsp8jz:</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>