<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:09:29 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-45694] Larger RamLog maximum log line length when testing</title>
                <link>https://jira.mongodb.org/browse/SERVER-45694</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Examining server logs from jstests is sometimes necessary (eg. to check behaviour of commands that aren&apos;t profiled, such as auth admin commands or update/delete bulk commands (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23266&quot; title=&quot;Add profiling for the batch update/remove summary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23266&quot;&gt;SERVER-23266&lt;/a&gt;)).  This is typically done using the getLog command (or the checkLog shell helper).  However, the current RamLog line length limit may be overrun, especially for commands in sharded environments.  This makes tests that need to examine the logs this way inherently fragile.&lt;/p&gt;

&lt;p&gt;Simply increasing the maximum length adds only modest memory usage, but may have implications for any downstream users of the getLog command (especially if the getLog output is stored/processed).  So a better solution would be to increase the maximum line length only during testing, ie. when &lt;tt&gt;--enableTestCommands&lt;/tt&gt; has been specified.  This would allow the fragility of log-based tests to be greatly reduced, without affecting non-test consumers of getLog output.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1108349">SERVER-45694</key>
            <summary>Larger RamLog maximum log line length when testing</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-security">Backlog - Security Team</assignee>
                                    <reporter username="kevin.pulo@mongodb.com">Kevin Pulo</reporter>
                        <labels>
                            <label>move-sec</label>
                    </labels>
                <created>Wed, 22 Jan 2020 06:44:18 +0000</created>
                <updated>Tue, 6 Dec 2022 02:37:47 +0000</updated>
                                                                            <component>Logging</component>
                    <component>Testing Infrastructure</component>
                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2921730" author="kevin.pulo@10gen.com" created="Mon, 2 Mar 2020 05:19:00 +0000"  >&lt;p&gt;The changes in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46018&quot; title=&quot;RamLog should use a circular buffer&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46018&quot;&gt;&lt;del&gt;SERVER-46018&lt;/del&gt;&lt;/a&gt; &lt;em&gt;probably&lt;/em&gt; obviate the need for this.  Certainly as this ticket is currently phrased, there is no longer any actual line limit in the RamLog.  But we should probably let those changes bake for a while, in case it turns out that we want a larger overall RamLog limit in testing than in general usage (including perhaps making it configurable with a server parameter; currently kMaxSizeBytes is constexpr, but it almost certainly doesn&apos;t have to be).&lt;/p&gt;</comment>
                            <comment id="2767467" author="kevin.pulo@10gen.com" created="Tue, 28 Jan 2020 10:16:36 +0000"  >&lt;p&gt;Sorry, I should have been clearer.  While 2048 is currently long enough, one of the log messages being checked is around 1700 bytes (with another in-progress ticket likely to increase that by up to 130 bytes).  So although the immediate need is much reduced, I&apos;m concerned that in the future we might still want something more flexible (on the assumption that downstream consumers will eventually see some impact if we just keep naively bumping the limit when tests break).&lt;/p&gt;

&lt;p&gt;It&apos;s also hard to diagnose when jstests break because of this, since when reviewing the logs the necessary matching line appears to be present and fine.  Another possibility could be to adjust the checkLog js helper, and/or the getLog command, to output some warning if a line is encountered which is exactly C-1 bytes long (ie. has almost certainly been truncated).&lt;/p&gt;</comment>
                            <comment id="2766349" author="henrik.edin" created="Mon, 27 Jan 2020 19:19:00 +0000"  >&lt;p&gt;Great! &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.pulo&quot; class=&quot;user-hover&quot; rel=&quot;kevin.pulo&quot;&gt;kevin.pulo&lt;/a&gt; Does this mean we can close this ticket? Or do you feel we need something more flexible?&lt;/p&gt;</comment>
                            <comment id="2758651" author="kevin.pulo@10gen.com" created="Fri, 24 Jan 2020 02:32:31 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=maria.vankeulen&quot; class=&quot;user-hover&quot; rel=&quot;maria.vankeulen&quot;&gt;maria.vankeulen&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=henrik.edin&quot; class=&quot;user-hover&quot; rel=&quot;henrik.edin&quot;&gt;henrik.edin&lt;/a&gt;!  It turns out that 2048 is also sufficient for my current needs, so I&apos;ve repurposed this ticket accordingly.&lt;/p&gt;</comment>
                            <comment id="2755655" author="maria.vankeulen" created="Thu, 23 Jan 2020 19:17:32 +0000"  >&lt;p&gt;As an update, I&apos;ve included the 2048 byte increase as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45662&quot; title=&quot;Flow Control currentOp timeAcquiringMicros stat is no longer updated&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45662&quot;&gt;&lt;del&gt;SERVER-45662&lt;/del&gt;&lt;/a&gt;. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45694&quot; title=&quot;Larger RamLog maximum log line length when testing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45694&quot;&gt;SERVER-45694&lt;/a&gt; can be repurposed to pursue the more flexible solution if necessary.&lt;/p&gt;</comment>
                            <comment id="2754986" author="maria.vankeulen" created="Thu, 23 Jan 2020 14:50:43 +0000"  >&lt;p&gt;That suggestion sounds great &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kevin.pulo&quot; class=&quot;user-hover&quot; rel=&quot;kevin.pulo&quot;&gt;kevin.pulo&lt;/a&gt;. In the interest of proceeding with &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-45662&quot; title=&quot;Flow Control currentOp timeAcquiringMicros stat is no longer updated&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-45662&quot;&gt;&lt;del&gt;SERVER-45662&lt;/del&gt;&lt;/a&gt;, I&apos;d like to change the default byte limit to 2048. It looks like my evergreen run for this doesn&apos;t introduce any new failures, so if it&apos;s ok with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=henrik.edin&quot; class=&quot;user-hover&quot; rel=&quot;henrik.edin&quot;&gt;henrik.edin&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gabriel.russell&quot; class=&quot;user-hover&quot; rel=&quot;gabriel.russell&quot;&gt;gabriel.russell&lt;/a&gt; I&apos;d like to proceed with that as a temporary solution.&lt;/p&gt;</comment>
                            <comment id="2754274" author="kevin.pulo@10gen.com" created="Thu, 23 Jan 2020 01:56:35 +0000"  >&lt;p&gt;Actually, it occurs to me that although the line length is currently a compile-time constant, it might not be too hard to make it adjustable (allocate &lt;tt&gt;lines&lt;/tt&gt; on the heap, and provide a &lt;tt&gt;setLineLength()&lt;/tt&gt; which makes a new one and &lt;tt&gt;memcpy&lt;/tt&gt;&amp;zwj;s the old lines into it, etc).  Then it could stay at 1024 by default, but with a hook in &lt;tt&gt;--enableTestCommands&lt;/tt&gt; that makes it as large as we like for testing purposes (for the global log).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1106789">SERVER-45662</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1106979">SERVER-45669</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1101325">SERVER-45623</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1108336">SERVER-45693</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25129"><![CDATA[Server Security]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 22 Jan 2020 15:25:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 49 weeks, 2 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_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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 49 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-security</customfieldvalue>
            <customfieldvalue>henrik.edin@mongodb.com</customfieldvalue>
            <customfieldvalue>kevin.pulo@mongodb.com</customfieldvalue>
            <customfieldvalue>maria.vankeulen@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwk43z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw85br:</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_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|hwjqdb:</customfieldvalue>

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