<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:41:49 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-57428] Coverity analysis defect 120147: Parse warning</title>
                <link>https://jira.mongodb.org/browse/SERVER-57428</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Parse warning&lt;/p&gt;

&lt;p&gt; A parse warning may reduce maintainability of the code, or it may indicate a serious error. A parse warning from the Coverity parser may indicate a bug, or poor coding practice&lt;br/&gt;
/src/mongo/db/read_write_concern_provenance.h:128: PW.USELESS_TYPE_QUALIFIER_ON_RETURN_TYPE 120147 type qualifier on return type is meaningless&lt;/p&gt;</description>
                <environment></environment>
        <key id="1768253">SERVER-57428</key>
            <summary>Coverity analysis defect 120147: Parse warning</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="3">Duplicate</resolution>
                                        <assignee username="samy.lanka@mongodb.com">Samyukta Lanka</assignee>
                                    <reporter username="xgen-internal-coverity">Coverity Collector User</reporter>
                        <labels>
                            <label>coverity</label>
                    </labels>
                <created>Thu, 3 Jun 2021 23:53:56 +0000</created>
                <updated>Tue, 8 Jun 2021 15:46:42 +0000</updated>
                            <resolved>Tue, 8 Jun 2021 15:46:42 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3866505" author="samy.lanka" created="Tue, 8 Jun 2021 15:46:42 +0000"  >&lt;p&gt;This was fixed as a part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57142&quot; title=&quot;Coverity analysis defect 120120: Parse warning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57142&quot;&gt;&lt;del&gt;SERVER-57142&lt;/del&gt;&lt;/a&gt;, so closing this ticket as a duplicate.&lt;/p&gt;</comment>
                            <comment id="3859961" author="acm" created="Fri, 4 Jun 2021 15:17:32 +0000"  >&lt;p&gt;I&apos;ve filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-57446&quot; title=&quot;clang-tidy results from headers are not being reported&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-57446&quot;&gt;&lt;del&gt;SERVER-57446&lt;/del&gt;&lt;/a&gt; in response.&lt;/p&gt;</comment>
                            <comment id="3859944" author="acm" created="Fri, 4 Jun 2021 15:11:04 +0000"  >&lt;p&gt;Actually, the issue is right there in front of us. From that log you linked:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Use -header-filter=.* to display errors from all non-system headers&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;We need to be running with something like &lt;tt&gt;--header-filter=mongo/.*&lt;/tt&gt; in order to get clang-tidy reports for code in headers. &lt;/p&gt;</comment>
                            <comment id="3859827" author="benety.goh" created="Fri, 4 Jun 2021 14:34:03 +0000"  >&lt;p&gt;The most recent &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_ubuntu_dynamic_1804_clang_tidy_required_clang_tidy_cec298ac1010a34b8aa423e7a4c129ac00ad8ed3_21_06_04_11_24_33&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;clang-tidy run&lt;/a&gt; mentioned the .cpp file but not the header. Maybe this is the issue?&lt;/p&gt;

&lt;p&gt;We extract the source files for clang-tidy to process from the scons-generated &lt;b&gt;compile_commands.json&lt;/b&gt; build artifact.&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[2021/06/04 12:49:45.955] /opt/mongodbtoolchain/v3/bin/clang-tidy -p ./compile_commands.json --checks=-*,bugprone-unused-raii,bugprone-use-after-move,readability-const-return-type,readability-avoid-const-params-in-decls -warnings-as-errors=* src/mongo/db/namespace_string.cpp src/mongo/db/update_index_data.cpp src/mongo/db/collection_index_usage_tracker.cpp src/mongo/db/server_options.cpp src/mongo/db/server_options_helpers.cpp src/mongo/db/server_options_base.cpp src/mongo/db/server_options_server_helpers.cpp src/mongo/db/initialize_server_security_state.cpp src/mongo/db/initialize_server_global_state.cpp src/mongo/db/server_options_init.cpp src/mongo/db/global_settings.cpp src/mongo/db/mongod_options.cpp src/mongo/db/read_write_concern_provenance.cpp src/mongo/db/write_concern_options.cpp src/mongo/db/read_write_concern_defaults.cpp src/mongo/db/read_write_concern_defaults_cache_lookup_mock.cpp src/mongo/db/baton.cpp src/mongo/db/cancelable_operation_context.cpp src/mongo/db/client.cpp src/mongo/db/client_strand.cpp src/mongo/db/default_baton.cpp src/mongo/db/operation_context.cpp src/mongo/db/operation_context_group.cpp src/mongo/db/operation_cpu_timer.cpp src/mongo/db/operation_id.cpp src/mongo/db/operation_key_manager.cpp src/mongo/db/service_context.cpp src/mongo/db/server_recovery.cpp src/mongo/db/repl_set_member_in_standalone_mode.cpp src/mongo/db/prepare_conflict_tracker.cpp src/mongo/db/multi_key_path_tracker.cpp src/mongo/db/lasterror.cpp&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
</comment>
                            <comment id="3859793" author="benety.goh" created="Fri, 4 Jun 2021 14:25:04 +0000"  >&lt;p&gt;The &lt;a href=&quot;https://github.com/mongodb/mongo/commit/25bf17229bdddea523ae94571cc22ae4939cfd3c#diff-18dd88452258ad28310c980a6c6ec195373f37cebcc0dbb72acb3d977a23afb5R128&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;function&lt;/a&gt; that Coverity flagged was added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-56861&quot; title=&quot;Update semantics for server status&amp;#39;s opWriteConcernCounters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-56861&quot;&gt;&lt;del&gt;SERVER-56861&lt;/del&gt;&lt;/a&gt; but this pattern was already in place for this class.&lt;/p&gt;</comment>
                            <comment id="3859534" author="acm" created="Fri, 4 Jun 2021 12:01:31 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=benety.goh&quot; class=&quot;user-hover&quot; rel=&quot;benety.goh&quot;&gt;benety.goh&lt;/a&gt; - I thought we had enabled the clang-tidy check for this with &lt;tt&gt;readability-const-return-type&lt;/tt&gt;. Any idea why it didn&apos;t catch this instance?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1711060">SERVER-56861</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1496395">SERVER-51240</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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 4 Jun 2021 12:01:31 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 35 weeks, 1 day 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>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-coverity</customfieldvalue>
            <customfieldvalue>samy.lanka@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzjn7j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz48x3:</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="5035">Repl 2021-06-14</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|hzj9gn:</customfieldvalue>

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