<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:12:41 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-46873] Invalid utf-8 in json logs</title>
                <link>https://jira.mongodb.org/browse/SERVER-46873</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In this file: &lt;a href=&quot;https://s3.amazonaws.com/mciuploads/mongo-ruby-driver/mongo-latest__mongodb-version~latest_topology~replica-set_auth-and-ssl~noauth-and-nossl_ruby~ruby-2.7_os~ubuntu1604/3da63736cf6fd65edb655fe21aa94b970796b802/5e6b12882a60ed16d60d365b/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41/logs/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_test_mlaunch_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41-0-mongodb-logs.tar.gz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://s3.amazonaws.com/mciuploads/mongo-ruby-driver/mongo-latest__mongodb-version~latest_topology~replica-set_auth-and-ssl~noauth-and-nossl_ruby~ruby-2.7_os~ubuntu1604/3da63736cf6fd65edb655fe21aa94b970796b802/5e6b12882a60ed16d60d365b/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41/logs/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_test_mlaunch_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41-0-mongodb-logs.tar.gz&lt;/a&gt;, in  drivers-tools/.evergreen/orchestration/db/ruby-driver-rs/rs2/mongod.log , the server produced 4 lines that contain invalid utf-8 as reported by Ruby. The line numbers are 21111, 21962, 22041, 22187. These lines all look like this:&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;{&quot;t&quot;:{&quot;$date&quot;:&quot;2020-03-13T05:12:21.172+0000&quot;},&quot;s&quot;:&quot;I&quot;, &quot;c&quot;:&quot;TXN&quot;,     &quot;id&quot;:51802,&quot;ctx&quot;:&quot;conn1036&quot;,&quot;msg&quot;:&quot;transaction&quot;,&quot;attr&quot;:{&quot;parameters&quot;:{&quot;lsid&quot;:{&quot;id&quot;:{&quot;$uuid&quot;:&quot;ee279b85-d0db-4273-948c-f3f40327d56a&quot;},&quot;uid&quot;:{&quot;$binary&quot;:{&quot;base64&quot;:&quot;47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=&quot;,&quot;subType&quot;:&quot;0&quot;}}},&quot;txnNumber&quot;:1,&quot;autocommit&quot;:false,&quot;readConcern&quot;:{&quot;provenance&quot;:&quot;implicitDefault&quot;}},&quot;readTimestamp&quot;:&quot;Timestamp(0, 0)&quot;,&quot;ninserted&quot;:1,&quot;keysInserted&quot;:1,&quot;terminationCause&quot;:&quot;\ufffd&#65533;&#65533;&#65533;\ufffdU\u0000\u0000\u0000&quot;,&quot;timeActive&quot;:287,&quot;timeInactive&quot;:1011340,&quot;numYields&quot;:0,&quot;locks&quot;:{&quot;ReplicationStateTransition&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:3}},&quot;Global&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:2}},&quot;Database&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:3}},&quot;Collection&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:3}},&quot;Mutex&quot;:{&quot;acquireCount&quot;:{&quot;r&quot;:3}}},&quot;storage&quot;:{},&quot;wasPrepared&quot;:false,&quot;durationMillis&quot;:1011}}&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;terminationCause appears to look like this:&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;\&quot;terminationCause\&quot;:\&quot;\\ufffd\xED\xA9\x9B\\ufffdU\\u0000\\u0000\\u0000\&quot;&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;Ruby has this to say about it:&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;   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;(byebug) line.force_encoding(&apos;utf-8&apos;).encode(&apos;utf-16&apos;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&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-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;*** Encoding::InvalidByteSequenceError Exception: &quot;\xED&quot; followed by &quot;\xA9&quot; on UTF-8&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;According to &lt;a href=&quot;https://en.wikipedia.org/wiki/JSON#Data_portability_issues&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://en.wikipedia.org/wiki/JSON#Data_portability_issues&lt;/a&gt; json should be encoded in utf-8.&lt;/p&gt;

&lt;p&gt;Build: &lt;a href=&quot;https://evergreen.mongodb.com/build/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/build/mongo_ruby_driver_mongo_latest__mongodb_version~latest_topology~replica_set_auth_and_ssl~noauth_and_nossl_ruby~ruby_2.7_os~ubuntu1604_patch_3da63736cf6fd65edb655fe21aa94b970796b802_5e6b12882a60ed16d60d365b_20_03_13_04_56_41/&lt;/a&gt;&lt;/p&gt;


</description>
                <environment></environment>
        <key id="1273238">SERVER-46873</key>
            <summary>Invalid utf-8 in json logs</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="mark.benvenuto@mongodb.com">Mark Benvenuto</assignee>
                                    <reporter username="oleg.pudeyev@mongodb.com">Oleg Pudeyev</reporter>
                        <labels>
                    </labels>
                <created>Sat, 14 Mar 2020 05:47:47 +0000</created>
                <updated>Sun, 29 Oct 2023 22:10:46 +0000</updated>
                            <resolved>Mon, 25 Jan 2021 21:26:53 +0000</resolved>
                                    <version>4.3.4</version>
                                    <fixVersion>4.4.0</fixVersion>
                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3581513" author="mark.benvenuto" created="Mon, 25 Jan 2021 21:26:53 +0000"  >&lt;p&gt;As part as &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46219&quot; title=&quot;Unittests should log with JSON format&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46219&quot;&gt;&lt;del&gt;SERVER-46219&lt;/del&gt;&lt;/a&gt;, this issue was fixed. A `std::string` was changed to `StringData` which fixed the lifetime issues. The bogus UTF-8 was a result of reading freed memory.&lt;/p&gt;</comment>
                            <comment id="2981777" author="bruce.lucas@10gen.com" created="Mon, 16 Mar 2020 17:40:38 +0000"  >&lt;p&gt;It looks to me that this is worse than simply logging invalid utf8 - it looks like terminationCause is garbage, indicating possibly a more serious problem like use after free, wild pointer, uninitialized storage.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1157031">SERVER-46219</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.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>Mon, 16 Mar 2020 17:40:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 2 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_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>
                            3 years, 2 weeks, 2 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>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
            <customfieldvalue>oleg.pudeyev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hx8c07:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxgm9j:</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="3839">Service arch 2020-05-04</customfieldvalue>
    <customfieldvalue id="3840">Service arch 2020-05-18</customfieldvalue>
    <customfieldvalue id="3950">Service arch 2020-06-01</customfieldvalue>
    <customfieldvalue id="3951">Service arch 2020-06-15</customfieldvalue>
    <customfieldvalue id="3952">Service arch 2020-06-29</customfieldvalue>
    <customfieldvalue id="3953">Service arch 2020-07-13</customfieldvalue>
    <customfieldvalue id="4132">Service Arch 2020-07-27</customfieldvalue>
    <customfieldvalue id="4133">Service Arch 2020-08-10</customfieldvalue>
    <customfieldvalue id="4134">Service Arch 2020-08-24</customfieldvalue>
    <customfieldvalue id="4572">Security 2021-02-08</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|hx7y9j:</customfieldvalue>

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