<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:08:25 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-67545] When auth is disabled, _mayBypassWriteBlockingMode should be set to true</title>
                <link>https://jira.mongodb.org/browse/SERVER-67545</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63174&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-63174&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The above ticket introduced logic to compute _mayBypassWriteBlockingMode, however, the logic is invoked even when auth is disabled, which incurs a small (and unnecessary) performance overhead. _mayBypassWriteBlockingMode should be directly set to true when auth is disabled.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2077403">SERVER-67545</key>
            <summary>When auth is disabled, _mayBypassWriteBlockingMode should be set to true</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="adam.rayner@mongodb.com">Adam Rayner</assignee>
                                    <reporter username="jenny.ren@mongodb.com">Jenny Ren</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Jun 2022 15:10:16 +0000</created>
                <updated>Sun, 29 Oct 2023 21:36:24 +0000</updated>
                            <resolved>Mon, 29 Aug 2022 13:18:16 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4780289" author="xgen-internal-githook" created="Fri, 26 Aug 2022 18:21:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Adam Rayner&apos;, &apos;email&apos;: &apos;adam.rayner@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-67545&quot; title=&quot;When auth is disabled, _mayBypassWriteBlockingMode should be set to true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-67545&quot;&gt;&lt;del&gt;SERVER-67545&lt;/del&gt;&lt;/a&gt; only refresh mayBypassWriteBlockingMode when auth is enabled&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c53c0cf2dbea9ea36af6746f59b7f3647370e210&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c53c0cf2dbea9ea36af6746f59b7f3647370e210&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4708819" author="daniel.gottlieb@10gen.com" created="Wed, 27 Jul 2022 15:05:29 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=adam.rayner%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;adam.rayner@mongodb.com&quot;&gt;adam.rayner@mongodb.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We did see a perf hit due to this cost. It&apos;s significant in some contexts, but not in others. To elaborate:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;This shows up when profiling a low number of concurrent readers on a standalone &amp;#8211; obviously without auth. Probably shows up in more interesting workloads as well.&lt;/li&gt;
	&lt;li&gt;That workload isn&apos;t indicative of a recommended customer workload due to auth being disabled.&lt;/li&gt;
	&lt;li&gt;We see about a 1% performance hit due to the unnecessary auth checks.&lt;/li&gt;
	&lt;li&gt;To put in context, this is a top-3 issue we&apos;ve identified. Each costing us roughly 1-2%&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I too am not particularly concerned with fixing this for the sake of being hygienic. My main motivation to address this is to remove the noise when profiling in an effort to make performance improvements. If this is deemed a safe change anyone can make, I&apos;m happy to take it on myself.&lt;/p&gt;</comment>
                            <comment id="4683504" author="JIRAUSER1262924" created="Fri, 15 Jul 2022 21:17:00 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jenny.ren%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;jenny.ren@mongodb.com&quot;&gt;jenny.ren@mongodb.com&lt;/a&gt; thanks for raising this, but after internal discussion with the team I am closing this as won&apos;t do:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;We only populate _mayBypassWriteBlockingMode in _updateInternalAuthorizationState which is only used to manage authorization state - it may be possible to authenticate to a server without --auth, but this is not a server state we are too concerned about optimizing&lt;/li&gt;
	&lt;li&gt;Looking at the code in the PR, the code path in question is not especially hot and If there is no other data on the performance involved here then we consider this to be a micro-optimization&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Certainly if there is additional performance information driving this request, let me know and happy to re-evaluate these assumptions.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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, 15 Jul 2022 21:17:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 23 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></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>
                            1 year, 23 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>adam.rayner@mongodb.com</customfieldvalue>
            <customfieldvalue>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jenny.ren@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i103tb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0iyds:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6254">Security 2022-07-11</customfieldvalue>
    <customfieldvalue id="6255">Security 2022-07-25</customfieldvalue>
    <customfieldvalue id="6258">Security 2022-09-05</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|i0zpyn:</customfieldvalue>

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