<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:04:04 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-3795] All logfile lines should start with date</title>
                <link>https://jira.mongodb.org/browse/SERVER-3795</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Most lines in the logfile start with the date the log entry was created, like&lt;br/&gt;
Fri Sep  9 03:41:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1618300&amp;#93;&lt;/span&gt; query &lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt; reslen:64 829ms&lt;br/&gt;
Unfortunately, sometime, there are also entries, which don&apos;t follow this convention, such as&lt;/p&gt;

&lt;p&gt;		2300/22660	10%&lt;br/&gt;
		12000/22660	52%&lt;br/&gt;
		19800/22660	87%&lt;br/&gt;
		100/103	97%&lt;br/&gt;
		3300/10050	32%&lt;br/&gt;
		8700/23255	37%&lt;br/&gt;
		19500/23255	83%&lt;br/&gt;
		800/2111	37%&lt;br/&gt;
unindex failed (key too big?) &lt;/p&gt;

&lt;p&gt;and some more.&lt;/p&gt;

&lt;p&gt;The presence of these lines makes it way more difficult to parse the log file for important entries (with logwatch for example) ...&lt;/p&gt;</description>
                <environment></environment>
        <key id="22044">SERVER-3795</key>
            <summary>All logfile lines should start with date</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="9">Done</resolution>
                                        <assignee username="sverch">Shaun Verch</assignee>
                                    <reporter username="dominik">Dominik Gehl</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Sep 2011 12:49:47 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:46 +0000</updated>
                            <resolved>Thu, 8 Nov 2012 17:47:55 +0000</resolved>
                                    <version>1.8.3</version>
                                    <fixVersion>2.3.1</fixVersion>
                                    <component>Logging</component>
                                        <votes>1</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="183031" author="auto" created="Tue, 6 Nov 2012 16:15:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-10-18T23:37:06Z&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3795&quot; title=&quot;All logfile lines should start with date&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3795&quot;&gt;&lt;del&gt;SERVER-3795&lt;/del&gt;&lt;/a&gt; Rewrote multiline log statement to instead pass a string to msgasserted&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7fe30630080c58565c3471efbfdd1e62694a79ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7fe30630080c58565c3471efbfdd1e62694a79ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="183030" author="auto" created="Tue, 6 Nov 2012 16:15:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-27T23:42:56Z&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3795&quot; title=&quot;All logfile lines should start with date&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3795&quot;&gt;&lt;del&gt;SERVER-3795&lt;/del&gt;&lt;/a&gt; Make sure every logical log statement ends with endl, so that the next log statement will begin with a date&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/48ee27067f024b23066070a7e1d5acd3e91960ee&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/48ee27067f024b23066070a7e1d5acd3e91960ee&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="167101" author="tad" created="Sun, 23 Sep 2012 12:21:10 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dominik&quot; class=&quot;user-hover&quot; rel=&quot;dominik&quot;&gt;dominik&lt;/a&gt; The commit above fixes the case you reported, but we&apos;re going to do a more thorough audit to make sure that every intended complete log line ends with &apos;endl&apos; so that the following line will start with a timestamp if it follows the normal logging conventions.  Thanks for the report.&lt;/p&gt;</comment>
                            <comment id="167100" author="auto" created="Sun, 23 Sep 2012 12:15:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-09-21T12:45:46-07:00&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3795&quot; title=&quot;All logfile lines should start with date&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3795&quot;&gt;&lt;del&gt;SERVER-3795&lt;/del&gt;&lt;/a&gt; end logged lines with endl, not newline&lt;/p&gt;

&lt;p&gt;Replace a newline in a message with an endl so we get the line break&lt;br/&gt;
logic in the logging code.  Neaten up the code slightly and put quotes&lt;br/&gt;
around the &apos;id&apos; so it looks like it belongs there.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/aa36e3b343c3a3c23a773e587ab67184e66c9161&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/aa36e3b343c3a3c23a773e587ab67184e66c9161&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="166923" author="tad" created="Fri, 21 Sep 2012 21:22:35 +0000"  >&lt;blockquote&gt;&lt;p&gt;Isn&apos;t there some kind of log class which writes to the file ? If yes, you could check all incoming log lines for the line ending and complete the line ending automatically there ... so no more hunting for correctly terminated log messages elsewhere ...&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Yes and no.  There are classes that do logging, but they are organized as &quot;stream&quot; interfaces, so the text sent to them comes in bits and we still need an explicit marker to say when the line is finished.  There really are no &quot;log lines&quot; until the marker says that the line has ended.  They look like &quot;lines&quot; in the output because we terminate them with line ending &quot;stuff&quot;.  We &lt;b&gt;could&lt;/b&gt; treat newline the same as endl, but this sort of mixes two similar but distinct things and would be less flexible.&lt;/p&gt;

&lt;p&gt;Given the way the code is written, the right &quot;fix&quot; is to use &quot;endl&quot; to end lines.  We do that in something close to 100% of cases, so we just need to make it 100% and keep it there.&lt;/p&gt;</comment>
                            <comment id="166894" author="sverch" created="Fri, 21 Sep 2012 20:18:27 +0000"  >&lt;p&gt;I did a grep for \n&quot;; and found a bunch of log messages that weren&apos;t terminated in endl.  Should all log messages be terminated with endl?  If you give me a few examples (for example, now I know &quot;out()&quot; should be), then I can just go put endl in all of those places.&lt;/p&gt;

&lt;p&gt;Also, does anyone know why this actually happens?&lt;/p&gt;</comment>
                            <comment id="166873" author="dominik" created="Fri, 21 Sep 2012 19:46:48 +0000"  >&lt;p&gt;Isn&apos;t there some kind of log class which writes to the file ? If yes, you could check all incoming log lines for the line ending and complete the line ending automatically there ... so no more hunting for correctly terminated log messages elsewhere ...&lt;/p&gt;</comment>
                            <comment id="166871" author="tad" created="Fri, 21 Sep 2012 19:43:32 +0000"  >&lt;p&gt;Great; yes, this line was terminated with newline (backslash-n) and not endl.  Easy to fix.&lt;/p&gt;</comment>
                            <comment id="166845" author="dominik" created="Fri, 21 Sep 2012 18:58:41 +0000"  >&lt;p&gt;Here&apos;s the line missing the &apos;endl&apos; (all the previouly shown lines seem to be preceded by this one):&lt;/p&gt;

&lt;p&gt;Thu Sep 20 11:37:13 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1061&amp;#93;&lt;/span&gt; ClientCursor::find(): cursor not found in map -1 (ok after a drop)&lt;br/&gt;
getmore &lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&lt;/p&gt;</comment>
                            <comment id="166739" author="tad" created="Fri, 21 Sep 2012 15:17:25 +0000"  >&lt;p&gt;You can get a log line that doesn&apos;t begin with a timestamp if the &lt;b&gt;previous&lt;/b&gt; line failed to include an &apos;endl&apos;, so we need to see these in context to see what needs to be fixed.  Please post a full log or at least a complete fragment so that we can look into any remaining issues.&lt;/p&gt;</comment>
                            <comment id="166676" author="dominik" created="Fri, 21 Sep 2012 12:58:41 +0000"  >&lt;p&gt;Quick check of my log files showed that some of the lines in 2.2 still don&apos;t contain the date/time prefix:&lt;/p&gt;

&lt;p&gt;end connection 127.0.0.1:42359 (48 connections now open)&lt;br/&gt;
update &amp;lt;db&amp;gt;.&amp;lt;coll&amp;gt; query: &lt;/p&gt;
{ ... } nscanned:1 nmoved:1 nupdated:1 keyUpdates:0 locks(micros) w:428087 428ms&lt;br/&gt;
getmore &amp;lt;db&amp;gt;.&amp;lt;coll&amp;gt; query: { ... }
&lt;p&gt; cursorid:4072594741088413906 ntoreturn:0 keyUpdates:0 numYields: 13 locks(micros) r:15680 nreturned:698 reslen:217873 109ms&lt;br/&gt;
query &amp;lt;db&amp;gt;.&amp;lt;coll&amp;gt; query: &lt;/p&gt;
{ ... }
&lt;p&gt;, $hint: &lt;/p&gt;
{ labels: 1 }
&lt;p&gt; } cursorid:1261926605883642218 ntoreturn:0 ntoskip:0 nscanned:13260 keyUpdates:0 locks(micros) r:127982 nreturned:101 reslen:27282 127ms&lt;/p&gt;</comment>
                            <comment id="166578" author="dan@10gen.com" created="Fri, 21 Sep 2012 02:13:46 +0000"  >&lt;p&gt;This was fixed for the ProgressMeter in 2.2.0&lt;br/&gt;
What are the others you mentioned?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="51068">SERVER-7097</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>12.0</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 2012 02:13:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 15 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 15 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </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>auto</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>dominik</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrordj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrfxg7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5759</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_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|ht02yn:</customfieldvalue>

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