<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:57 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>[JAVA-2735] Test failed in LoggingCommandEventSenderSpecification</title>
                <link>https://jira.mongodb.org/browse/JAVA-2735</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I can&apos;t build master branch due to failed test in &lt;/p&gt;

&lt;p&gt;LoggingCommandEventSenderSpecification. should log events&lt;/p&gt;


&lt;p&gt;See attachment for more details.&lt;/p&gt;

</description>
                <environment></environment>
        <key id="483578">JAVA-2735</key>
            <summary>Test failed in LoggingCommandEventSenderSpecification</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="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="fares.hassak@gmail.com">Far&#232;s Hassak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Jan 2018 20:46:32 +0000</created>
                <updated>Sat, 28 Oct 2023 11:23:01 +0000</updated>
                            <resolved>Fri, 19 Jan 2018 02:39:24 +0000</resolved>
                                                                    <component>Test Coverage</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1778542" author="xgen-internal-githook" created="Thu, 18 Jan 2018 23:55:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Far&#232;s Hassak&apos;, &apos;email&apos;: &apos;fares.hassak@gmail.com&apos;, &apos;username&apos;: &apos;fhassak&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2735&quot; title=&quot;Test failed in LoggingCommandEventSenderSpecification&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2735&quot;&gt;&lt;del&gt;JAVA-2735&lt;/del&gt;&lt;/a&gt; : Format decimal numbers (#442)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/3c2be9f3e23a7635038c36b36e81a553b0bbc46f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/3c2be9f3e23a7635038c36b36e81a553b0bbc46f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1776457" author="fares.hassak@gmail.com" created="Wed, 17 Jan 2018 14:35:20 +0000"  >&lt;p&gt;Test is success when i force the locale within Gradle.&lt;br/&gt;
In gradle.properties : &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;org.gradle.jvmargs= -Duser.language=en -Duser.country=US&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;So, PR 441 is bad idea. i will close it.&lt;/p&gt;

&lt;p&gt;But what about runtime (locale depends on jvm) ?&lt;/p&gt;

&lt;p&gt;More about locale and jvm : &lt;a href=&quot;http://www.oracle.com/technetwork/articles/javase/locale-140624.html#using&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.oracle.com/technetwork/articles/javase/locale-140624.html#using&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Far&#232;s&lt;/p&gt;</comment>
                            <comment id="1776306" author="charles.sarrazin" created="Wed, 17 Jan 2018 10:31:37 +0000"  >&lt;p&gt;What about forcing the locale within Gradle?&lt;/p&gt;

&lt;p&gt;Overall, this all depends on whether we want to force the log messages to be formatted in English, or whether we let users override locales.&lt;/p&gt;

&lt;p&gt;If we want to make sure that all log entries have the same format, then this should be enforced from within the code. Otherwise, we should not force the locale or string format in the code, but force the format in the gradle build options (forcing the &lt;tt&gt;user.language&lt;/tt&gt;, &lt;tt&gt;user.country&lt;/tt&gt; and &lt;tt&gt;user.variant&lt;/tt&gt; properties).&lt;/p&gt;</comment>
                            <comment id="1775875" author="fares.hassak@gmail.com" created="Tue, 16 Jan 2018 23:13:10 +0000"  >&lt;p&gt;-&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/441-&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/441-&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/442&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/442&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1775703" author="fares.hassak@gmail.com" created="Tue, 16 Jan 2018 21:26:15 +0000"  >&lt;p&gt;2 possible solutions :&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Force Locale to Locale.US when formating&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#format(java.util.Locale,%20java.lang.String,%20java.lang.Object&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#format(java.util.Locale,%20java.lang.String,%20java.lang.Object&lt;/a&gt;...)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Use DecimalFormat&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.oracle.com/javase/7/docs/api/java/text/DecimalFormat.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;like &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/cfc43dfaa7038a65ebb3ff88225b9d5ef50c30fe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/cfc43dfaa7038a65ebb3ff88225b9d5ef50c30fe&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;I will do a 2 PR for 2 solutions&lt;/p&gt;</comment>
                            <comment id="1775671" author="fares.hassak@gmail.com" created="Tue, 16 Jan 2018 21:05:18 +0000"  >&lt;p&gt;Maybe It&apos;s because I have a different Local (French) :&lt;/p&gt;

&lt;p&gt;completed successfully in \\d+\\.&lt;br class=&quot;atl-forced-newline&quot; /&gt;d+ ms &lt;/p&gt;

&lt;p&gt;completed successfully in 6,41 ms&lt;/p&gt;

&lt;p&gt;regex use &apos;.&apos;&lt;br/&gt;
message contains &apos;,&apos;&lt;/p&gt;


&lt;p&gt;I think it&apos;s same issue as &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2625&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/JAVA-2625&lt;/a&gt; &lt;/p&gt;</comment>
                            <comment id="1775662" author="fares.hassak@gmail.com" created="Tue, 16 Jan 2018 21:00:34 +0000"  >&lt;p&gt;yes on windows, i need to investigate (with help of Charles...)&lt;/p&gt;</comment>
                            <comment id="1775657" author="jeff.yemin" created="Tue, 16 Jan 2018 20:58:12 +0000"  >&lt;p&gt;I assume this is on Windows?  Any hypothesis yet as to why the tests are failing?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="176006" name="com.mongodb.connection.LoggingCommandEventSenderSpecification.html" size="9452" author="far&#232;s hassak" created="Tue, 16 Jan 2018 20:50:30 +0000"/>
                            <attachment id="176005" name="index.html" size="80416" author="far&#232;s hassak" created="Tue, 16 Jan 2018 20:45:22 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htflnb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>