<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:50 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-1117] 2.12.0-rc0 logs JMX InstanceAlreadyExistsException at WARNING level</title>
                <link>https://jira.mongodb.org/browse/JAVA-1117</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;When running several WAR files under one appserver, and both WAR files create one or several MongoClient instances, with 2.12.0-rc0 we start seeing &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;WARNING: Unable to register MBean org.mongodb.driver:type=ConnectionPool,clusterId=3,host=localhost,port=27017&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;   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;javax.management.InstanceAlreadyExistsException: org.mongodb.driver:type=ConnectionPool,clusterId=3,host=localhost,port=27017&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;   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;	at com.sun.jmx.mbeanserver.Repository.addMBean(Repository.java:437)&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;   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;	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerWithRepository(DefaultMBeanServerInterceptor.java:1898)&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;   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;	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:966)&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;   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;	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:900)&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;   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;	at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:324)&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;   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;	at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:522)&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;   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;	at com.mongodb.util.management.jmx.JMXMBeanServer.registerMBean(JMXMBeanServer.java:59)&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;   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;	at com.mongodb.JMXConnectionPoolListener.connectionPoolOpened(JMXConnectionPoolListener.java:52)&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;   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;	at com.mongodb.PooledConnectionProvider.&amp;lt;init&amp;gt;(PooledConnectionProvider.java:60)&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;   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;	at com.mongodb.DefaultClusterableServerFactory.create(DefaultClusterableServerFactory.java:50)&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;   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;	at com.mongodb.BaseCluster.createServer(BaseCluster.java:202)&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;   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;	at com.mongodb.SingleServerCluster.&amp;lt;init&amp;gt;(SingleServerCluster.java:45)&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;   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;	at com.mongodb.Clusters.create(Clusters.java:37)&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;   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;	at com.mongodb.DBTCPConnector.start(DBTCPConnector.java:75)&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;   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;	at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:346)&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;   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;	at com.mongodb.Mongo.&amp;lt;init&amp;gt;(Mongo.java:327)&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;   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;	at com.mongodb.MongoClient.&amp;lt;init&amp;gt;(MongoClient.java:268)&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;	at com.mongodb.Mongo$Holder.connect(Mongo.java:782)&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;This happens for the second WAR file starting (first one works fine, even though it started several instances of MongoClient). If we load only one of the WAR files (no matter which) this does not happen.&lt;/p&gt;

&lt;p&gt;This is working fine if using 2.11.4 (and a few earlier versions, for sure) of the driver but broke in 2.12.0-rc0&lt;/p&gt;</description>
                <environment>JDK 7u51 (Linux and OSX)</environment>
        <key id="111830">JAVA-1117</key>
            <summary>2.12.0-rc0 logs JMX InstanceAlreadyExistsException at WARNING level</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="-1">Unassigned</assignee>
                                    <reporter username="alexej.kubarev@accedo.tv">Alexej Kubarev</reporter>
                        <labels>
                            <label>rc</label>
                    </labels>
                <created>Wed, 19 Feb 2014 10:34:47 +0000</created>
                <updated>Thu, 6 Apr 2023 15:47:26 +0000</updated>
                            <resolved>Wed, 26 Feb 2014 14:27:20 +0000</resolved>
                                    <version>2.12.0</version>
                                    <fixVersion>2.12.0</fixVersion>
                                    <component>Monitoring</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="506374" author="jeff.yemin" created="Thu, 27 Feb 2014 15:37:37 +0000"  >&lt;p&gt;That&apos;s great.  Thanks for checking.&lt;/p&gt;</comment>
                            <comment id="506365" author="alexej.kubarev@accedo.tv" created="Thu, 27 Feb 2014 15:29:49 +0000"  >&lt;p&gt;Seems to be the same behavior as with 2.11.4.&lt;br/&gt;
Had a test run of our project with this drive and things seem to be working as expected&lt;/p&gt;</comment>
                            <comment id="506312" author="jeff.yemin" created="Thu, 27 Feb 2014 14:39:26 +0000"  >&lt;p&gt;Hi Alexej,&lt;/p&gt;

&lt;p&gt;If possible, can you test with the SNAPSHOT build available at &lt;a href=&quot;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/2.12.0-SNAPSHOT/mongo-java-driver-2.12.0-20140227.021034-55.jar&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://oss.sonatype.org/content/repositories/snapshots/org/mongodb/mongo-java-driver/2.12.0-SNAPSHOT/mongo-java-driver-2.12.0-20140227.021034-55.jar&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="505610" author="xgen-internal-githook" created="Wed, 26 Feb 2014 14:22:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1117&quot; title=&quot;2.12.0-rc0 logs JMX InstanceAlreadyExistsException at WARNING level&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1117&quot;&gt;&lt;del&gt;JAVA-1117&lt;/del&gt;&lt;/a&gt;: Reverting to 2.11.x behavior for registration of JMX MBeans: logging at INFO if a duplicate is found, and adding the MongoClient description to the MBean name to provide a way for the application to remove the duplication.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/923dfeba5bd17aff4903775f1d554e0a3023827b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/923dfeba5bd17aff4903775f1d554e0a3023827b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="505568" author="jeff.yemin" created="Wed, 26 Feb 2014 12:08:36 +0000"  >&lt;p&gt;You are right about the external dependencies, though I might consider an optional dependency if we could make that work.  That would require a layer of indirection that checked for the existence of SLF4J on the classpath.  The driver already does something similar with JMX.  &lt;/p&gt;

&lt;p&gt;Please open a new JIRA issue for this if you wouldn&apos;t mind.  It&apos;s not going to make 2.12 but we can consider it for 3.0.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="505538" author="alexej.kubarev@accedo.tv" created="Wed, 26 Feb 2014 08:27:20 +0000"  >&lt;p&gt;I see. If this is the only chan ge it does make sense to revert back to original log level.&lt;/p&gt;

&lt;p&gt;I know this is a bit off-topic but in the context of searching for the reason for logs not to appear - I&apos;ve started thinking:&lt;br/&gt;
Would it be possible to switch to SLF4J as the logging provider? Given that you only need their API and then users are free to choose which real provider to use (as SLF4J has all of these logging frameworks supported). My guess is that your design philosophy was not to include any external dependencies and thus the reason to use JUL, but it&apos;s a pain to use JUL in bigger environments and JUL is the only one that is very hard to override (was reading on SLF4J page about performance problems when trying to bridge from JUL API).&lt;/p&gt;

&lt;p&gt;If you believe it&apos;s possible I can do a change and submit it as a Pull Request, as this is a very fast and easy change that requires simply changing the imports. Also logger.debug() much more optimised in SLF4J as it allows placeholders and does not evaluate value of placeholders if debug is not enabled - performance gain.&lt;/p&gt;</comment>
                            <comment id="505441" author="jeff.yemin" created="Wed, 26 Feb 2014 02:42:56 +0000"  >&lt;p&gt;I changed the title and metadata to reflect the fact that this exception is not actually being thrown, just logged at a different level.&lt;/p&gt;</comment>
                            <comment id="505346" author="jeff.yemin" created="Tue, 25 Feb 2014 23:34:09 +0000"  >&lt;p&gt;We&apos;ve decided to revert to the 2.11.x behavior, which means&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;log at INFO instead of WARNING if a duplicate is found&lt;/li&gt;
	&lt;li&gt;add the MongoClient description to the MBean name to provide a way for the application to remove the duplication&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="505079" author="jeff.yemin" created="Tue, 25 Feb 2014 19:14:45 +0000"  >&lt;p&gt;The Java driver is just using java.util.logging (JUL).  Since you are getting the WARNING in your logs, it means that JUL calls are being forwarded properly.  What doesn&apos;t seem to be working is the application of Log4J levels to JUL, and I&apos;m not sure why that is.&lt;/p&gt;

&lt;p&gt;Regardless, I&apos;m pretty sure that there is an INFO level message that is being logged in 2.11.x and swallowed by log4j, so the only difference in behavior between 2.11.x and 2.12.x is the log level.  Given the severity, I think WARNING is more appropriate than INFO, so I&apos;m not inclined to change that.&lt;/p&gt;

&lt;p&gt;What I would consider changing is the clusterId, so that its guaranteed to be unique across class loaders.  The only way to do this reliably is to use either GUIDs or ObjectIds as cluster identifiers, instead of integers. I&apos;m going to talk this over with some other driver developers, and I&apos;ll get back to you.&lt;/p&gt;</comment>
                            <comment id="504984" author="alexej.kubarev@accedo.tv" created="Tue, 25 Feb 2014 18:07:51 +0000"  >&lt;p&gt;Hi Jeff,&lt;/p&gt;

&lt;p&gt;This is crazy but for all libraries i have tested so far except mongodb java driver it works fine to enable/disable logging.&lt;br/&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;log4j.category.com.mongodb=INFO&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt; provides absolutely no effect. Neither does DEBUG...&lt;br/&gt;
We have &lt;tt&gt;slf4j-api&lt;/tt&gt;, &lt;tt&gt;jcl-over-slf4j&lt;/tt&gt; and &lt;tt&gt;jul-to-slf4j&lt;/tt&gt; (naturally &lt;tt&gt;log4j&lt;/tt&gt; and &lt;tt&gt;slf4j-log4j12&lt;/tt&gt; too).&lt;br/&gt;
Is mongo driver using something else? Because I can&apos;t figure out at this point why there is no driver output. Even if i put rootLogger=INFO and simply disable some of internal classes and springframework - still no luck getting those.&lt;/p&gt;

</comment>
                            <comment id="504967" author="jeff.yemin" created="Tue, 25 Feb 2014 17:25:38 +0000"  >&lt;p&gt;Hi Alexej,&lt;/p&gt;

&lt;p&gt;Are you saying that you aren&apos;t getting anything logged at all in &quot;com.mongodb&quot;, or just not that line?  If so, something is not right, since you should at the very least be getting this one: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/Mongo.java#L330&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/Mongo.java#L330&lt;/a&gt;.&lt;/p&gt;
</comment>
                            <comment id="504900" author="alexej.kubarev@accedo.tv" created="Tue, 25 Feb 2014 16:23:52 +0000"  >&lt;p&gt;Hi Jeff, during application startup nothing is happening for both INFO and DEBUG of com.mongodb.&lt;br/&gt;
Naturally just double checked that other classes (e.g org.springframework) are spamming as they should during startup.&lt;/p&gt;</comment>
                            <comment id="504888" author="alexej.kubarev@accedo.tv" created="Tue, 25 Feb 2014 16:13:46 +0000"  >&lt;p&gt;Hi Jeff, working on getting those logs for you (will take a few minutes). As for the clusterIds - we are getting 3 errors, one for each clusterId. But only after the first web-app deployed, so this is happening during second webapp initialization.&lt;br/&gt;
This is because the shared lib creates 3 different connection pools for us. This shared lib is in both WAR files and thus when only 1 WAR is running - we have no problem, but when more than 1 on the same app-server: we get this messages.&lt;/p&gt;

&lt;p&gt;And if this would turn out to be the only difference (which is possible), what would your recommendation be on avoiding it?&lt;br/&gt;
As it&apos;s not uncommon that several web-apps on same appserver will want to connect to the same MongoClientURI (identical settings).&lt;/p&gt;</comment>
                            <comment id="504848" author="jeff.yemin" created="Tue, 25 Feb 2014 15:33:10 +0000"  >&lt;p&gt;Can you turn up your logging to INFO on com.mongdb and run again with 2.11.4?  I want to see if this is being logged: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/DBPortPool.java#L89&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/DBPortPool.java#L89&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If so, then the only real difference here is the level of logging (INFO vs WARNING).  &lt;/p&gt;

&lt;p&gt;One other thing isn&apos;t clear to me.  In the description, the log message indicates a clusterId of 3.  Is that the only WARNING logged, or are there earlier ones for clusterId 1 and 2 as well?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="504723" author="alexej.kubarev@accedo.tv" created="Tue, 25 Feb 2014 09:00:40 +0000"  >&lt;p&gt;Hi Jeff,&lt;/p&gt;

&lt;p&gt;No, we are not providing that property&lt;br/&gt;
Even if we provide the property, it will still be same value for both WAR files (as creation of MongoClient is done in a JAR file that is embedded in both WAR files as library). Not sure if it helps, but we are creating MongoClient with help of MongoClientURI.&lt;/p&gt;</comment>
                            <comment id="504554" author="jeff.yemin" created="Tue, 25 Feb 2014 00:55:59 +0000"  >&lt;p&gt;Hi Alexej,&lt;/p&gt;

&lt;p&gt;After looking at the diffs between 2.11 and 2.12, I have an additional question: are you setting the description property on MongoClientOptions, and if so, are the MongoClient instances each constructed with different values for that property?  I ask because of this piece of code that&apos;s in 2.11 but not 2.12: &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/DBPortPool.java#L132-133&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/blob/2.11.x/src/main/com/mongodb/DBPortPool.java#L132-133&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="502199" author="jeff.yemin" created="Thu, 20 Feb 2014 11:15:57 +0000"  >&lt;p&gt;Thank you for testing the RC and for the bug report.  We will address this in the final release.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="114800">JAVA-1122</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_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|hrg96v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8394</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="107">Sprint 4</customfieldvalue>

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