<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:45: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-37247] Rarely macro should log first use of deprecated command</title>
                <link>https://jira.mongodb.org/browse/SERVER-37247</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Many people use the rarely and occasionally macros for logging or warning the end user without completely filling the logs with these warnings. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/r4.1.3/src/mongo/util/debug_util.h#L45-L55&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Today, the rarely marco skips the first use and logs on the 128th use&lt;/a&gt;. &lt;/p&gt;</description>
                <environment></environment>
        <key id="607991">SERVER-37247</key>
            <summary>Rarely macro should log first use of deprecated command</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="13201">Fixed</resolution>
                                        <assignee username="billy.donahue@mongodb.com">Billy Donahue</assignee>
                                    <reporter username="alyson.cabral@mongodb.com">Alyson Cabral</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Sep 2018 13:25:53 +0000</created>
                <updated>Mon, 8 Jan 2024 15:23:04 +0000</updated>
                            <resolved>Fri, 16 Nov 2018 18:39:19 +0000</resolved>
                                                    <fixVersion>4.1.6</fixVersion>
                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="2064947" author="xgen-internal-githook" created="Fri, 16 Nov 2018 18:36:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Billy Donahue&apos;, &apos;email&apos;: &apos;billy.donahue@mongodb.com&apos;, &apos;username&apos;: &apos;BillyDonahue&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5739&quot; title=&quot;Race condition in SOMETIMES/MONGO_SOMETIMES macros&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5739&quot;&gt;&lt;del&gt;SERVER-5739&lt;/del&gt;&lt;/a&gt; Fix races in RARELY/OCCASIONALLY.&lt;/p&gt;

&lt;p&gt;Switch to using C++ instead of macros.&lt;br/&gt;
Fix &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-37247&quot; title=&quot;Rarely macro should log first use of deprecated command&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-37247&quot;&gt;&lt;del&gt;SERVER-37247&lt;/del&gt;&lt;/a&gt;: these should fire on first hit.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/63e43f1bb47f7bddf3dc37ad03a2bbee6d2a9423&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/63e43f1bb47f7bddf3dc37ad03a2bbee6d2a9423&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2053875" author="billy.donahue" created="Tue, 6 Nov 2018 21:49:14 +0000"  >&lt;p&gt;Would be fixed incidentally by &lt;a href=&quot;https://mongodbcr.appspot.com/239630001/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodbcr.appspot.com/239630001/&lt;/a&gt;,&lt;br/&gt;
which primarily targets &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5739&quot; title=&quot;Race condition in SOMETIMES/MONGO_SOMETIMES macros&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5739&quot;&gt;&lt;del&gt;SERVER-5739&lt;/del&gt;&lt;/a&gt; (to use an atomic counter and get away from using macros).&lt;/p&gt;</comment>
                            <comment id="2010533" author="acm" created="Fri, 21 Sep 2018 16:00:34 +0000"  >&lt;p&gt;Also, I suspect simply moving to post-increment would address the issue in this ticket.&lt;/p&gt;</comment>
                            <comment id="2010522" author="acm" created="Fri, 21 Sep 2018 15:53:47 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mira.carey%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;mira.carey@mongodb.com&quot;&gt;mira.carey@mongodb.com&lt;/a&gt; - We actually did the work to make them atomic, but we decided to hold off on committing it, see comment history on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5739&quot; title=&quot;Race condition in SOMETIMES/MONGO_SOMETIMES macros&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5739&quot;&gt;&lt;del&gt;SERVER-5739&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="2010441" author="jason.carey" created="Fri, 21 Sep 2018 15:22:31 +0000"  >&lt;p&gt;To expand.  It seems like we mostly/often use RARELY and OCCASIONALLY for logging.  Seems like it&apos;d be a quality of life improvement to see these on the first invocation, instead of the nth.&lt;/p&gt;

&lt;p&gt;In this case, I think we have an instance where we&apos;re using the wrong method for rate-limiting logging, instead of having the wrong implementation of a macro.  The current set of macros use non-atomics in multi-threaded contexts.  Because of that, having a RARELY or an OCCASIONALLY fire at all is a bit of a dicey thing.  If we actually want to be sure that we&apos;re going to act on these branches, we&apos;d need versions that used atomics.&lt;/p&gt;

&lt;p&gt;A good solution to this ticket should separate out the callers we want to run &quot;sometime, maybe, hopefully, with some ub&quot; from the ones where we want &quot;do the thing every N passes&quot;.&lt;/p&gt;

&lt;p&gt;Logging per deprecated command invocation is clearly in the latter category.  I&apos;m a little less sure of the other call sites&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="37553">SERVER-5739</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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>Fri, 21 Sep 2018 15:22:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 12 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1202</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            5 years, 12 weeks, 5 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>alyson.cabral@mongodb.com</customfieldvalue>
            <customfieldvalue>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>billy.donahue@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mira.carey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu8jn3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hu6ktj:</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="2584">Dev Tools 2018-10-22</customfieldvalue>
    <customfieldvalue id="2599">Dev Tools 2018-11-05</customfieldvalue>
    <customfieldvalue id="2600">Dev Tools 2018-11-19</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|hu85wf:</customfieldvalue>

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