<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:29 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[JAVA-2542] Issue with collection drop</title>
                <link>https://jira.mongodb.org/browse/JAVA-2542</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;so I have a piece of code for dropping collections. It works on windows but not when its run in ubuntu. &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; MongoDatabase database;&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;        database = mongoClient.getDatabase(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;mydb&quot;&lt;/span&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;);&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;        MongoCollection&amp;lt;Document&amp;gt; _col =       database.getCollection(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;collName&quot;&lt;/span&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;);&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;        _col.drop();&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;        mongoClient.close();&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;&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;I think it might be a bug&lt;/p&gt;


&lt;p&gt;Thanks&lt;br/&gt;
Pedrum&lt;/p&gt;</description>
                <environment>ubuntu 16 lts</environment>
        <key id="395789">JAVA-2542</key>
            <summary>Issue with collection drop</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="13202">Works as Designed</resolution>
                                        <assignee username="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="pedrumj">pedrum jalali</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Jun 2017 19:55:42 +0000</created>
                <updated>Fri, 27 Oct 2023 13:21:12 +0000</updated>
                            <resolved>Wed, 19 Jul 2017 08:41:49 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1626016" author="ross@10gen.com" created="Wed, 19 Jul 2017 08:41:49 +0000"  >&lt;p&gt;Thanks - glad you were able to figure out the cause.&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1625589" author="pedrumj" created="Tue, 18 Jul 2017 19:55:38 +0000"  >&lt;p&gt;Just need to confirm that I was no  longer able to reproduce the error. I believe the issue had something to do with the fact that I was creating a new mongo client for each thread in a multi-threaded application rather than passing a reference of the client to the different threads. You can mark it resolved now. &lt;/p&gt;</comment>
                            <comment id="1610178" author="ross@10gen.com" created="Thu, 29 Jun 2017 08:59:28 +0000"  >&lt;p&gt;From the logs:&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;2017-06-28T09:55:44.183-0400 D COMMAND  [conn7] run command ISCX2014.$cmd { drop: &quot;training&quot; }&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;2017-06-28T09:55:44.183-0400 D REPL     [conn7] Waiting for write concern. OpTime: { ts: Timestamp 0|0, t: -1 }, write concern: { w: 1, wtimeout: 0 }&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;2017-06-28T09:55:44.183-0400 I COMMAND  [conn7] command ISCX2014.$cmd command: drop { drop: &quot;training&quot; } numYields:0 reslen:104 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { W: 1 } } } protocol:op_query 0ms&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;2017-06-28T09:55:44.188-0400 D NETWORK  [conn7] Socket recv() conn closed? 127.0.0.1:53806&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;2017-06-28T09:55:44.188-0400 D NETWORK  [conn7] SocketException: remote: 127.0.0.1:53806 error: 9001 socket exception [CLOSED] server [127.0.0.1:53806] &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;2017-06-28T09:55:44.189-0400 D NETWORK  [conn6] Socket recv() conn closed? 127.0.0.1:53804&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;2017-06-28T09:55:44.189-0400 D NETWORK  [conn6] SocketException: remote: 127.0.0.1:53804 error: 9001 socket exception [CLOSED] server [127.0.0.1:53804] &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;I can see there was a socket exception straight after the drop command on the same connection. It&apos;s reporting that the connection has been closed. Interesting, &lt;tt&gt;conn6&lt;/tt&gt; is also marked as closed and raises an exception.&lt;/p&gt;

&lt;p&gt;1. Can you include debugging logging from the Java side? I&apos;d be interested to see what is happening from the perspective of the drivers connection pool.&lt;br/&gt;
2. Can you confirm the Java driver version?&lt;/p&gt;

&lt;p&gt;All the best,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1608570" author="pedrumj" created="Wed, 28 Jun 2017 14:04:59 +0000"  >&lt;p&gt;I&apos;ve uploaded the logs in gdrive. Before preparing the logs I deleted all previous logs. So what  you are seeing are the logs for the following:&lt;/p&gt;

&lt;p&gt;1- service mongodb restart&lt;br/&gt;
2- db.setLogLevel(5)&lt;br/&gt;
3- The very first bit of code I wrote at the top.&lt;/p&gt;


&lt;p&gt;Thanks in advance&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://drive.google.com/file/d/0BwFUfWkiqC7VbHBscXk2OFRVNjQ/view?usp=sharing&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://drive.google.com/file/d/0BwFUfWkiqC7VbHBscXk2OFRVNjQ/view?usp=sharing&lt;/a&gt;&lt;/p&gt;

</comment>
                            <comment id="1608239" author="jeff.yemin" created="Wed, 28 Jun 2017 01:16:50 +0000"  >&lt;p&gt;The documents in the list do &lt;em&gt;not&lt;/em&gt; hold a reference to the collection, so clearing it will have no effect on the success or failure of the collection drop.&lt;/p&gt;

&lt;p&gt;If you can provide server logs we can proceed further with root cause analysis. &lt;/p&gt;</comment>
                            <comment id="1608226" author="pedrumj" created="Wed, 28 Jun 2017 00:41:34 +0000"  >&lt;p&gt;So I did some more testing. Apparently the issue was that I had previously done some query and converted to a list and I did not clear the list. The list was holding reference to the collection and hence the delete operation was not going through:&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;List&amp;lt;document&amp;gt; _temp = database.getCollection(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;collName&quot;&lt;/span&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;).find(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&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; Document()).into(&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;new&lt;/span&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; ArrayList&amp;lt;Documents&amp;gt;)&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;)&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;It might be good to explicitly note in the documents that the above collection needs to be freed with the command&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;_temp.clear()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

</comment>
                            <comment id="1604399" author="jeff.yemin" created="Thu, 22 Jun 2017 16:51:55 +0000"  >&lt;p&gt;In order to proceed I&apos;d like to see the mongod logs for the drop command, for both the successful and unsuccessful case.  It will look something 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;2017-06-22T12:50:26.552-0400 I COMMAND  [conn257] command dbcert.$cmd appName: &quot;MongoDB Shell&quot; command: drop { drop: &quot;foo&quot; } numYields:0 reslen:89 locks:{ Global: { acquireCount: { r: 1, w: 1 } }, Database: { acquireCount: { W: 1 } } } protocol:op_command 0ms&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;You may have to boost the log level on the MongoDB server to ensure that the command is logged.   Please include some context around the logging of the command in case there are any errors reported.&lt;/p&gt;</comment>
                            <comment id="1601718" author="pedrumj" created="Tue, 20 Jun 2017 14:23:11 +0000"  >&lt;p&gt;Hi, Thanks for the response.&lt;/p&gt;

&lt;p&gt;1- Not it just silently fails to drop the collection&lt;/p&gt;

&lt;p&gt;2- The java application is running on the same machine as the mongo server however as a separate application.  I&apos;ve tried the following setups:&lt;br/&gt;
Mongodb: On remote Ubuntu            Java application: On local windows&lt;br/&gt;
MongoDB: on remote Ubuntu             Java application: On same machine as mongodb (remote ubuntu)&lt;br/&gt;
Mongodb: On local windows              Java application: On local windows (Same machine as mongodb)&lt;/p&gt;

&lt;p&gt;The first and last work. The second fails. I believe there is something wrong with the linux java driver. &lt;/p&gt;


&lt;p&gt;&lt;b&gt;3- Sure. The following is when both the application and mongodb are on the same machine on remote ubuntu:&lt;/b&gt;&lt;br/&gt;
2017-06-20T10:15:09.343-0400 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn14&amp;#93;&lt;/span&gt; received client metadata from 127.0.0.1:47736 conn14: { driver: &lt;/p&gt;
{ name: &quot;mongo-java-driver&quot;, version: &quot;3.4.2&quot; }
&lt;p&gt;, os: &lt;/p&gt;
{ type: &quot;Linux&quot;, name: &quot;Linux&quot;, architecture: &quot;amd64&quot;, version: &quot;4.4.0-79-generic&quot; }
&lt;p&gt;, platform: &quot;Java/Oracle Corporation/1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11&quot; }&lt;br/&gt;
2017-06-20T10:15:09.423-0400 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn15&amp;#93;&lt;/span&gt; received client metadata from 127.0.0.1:47738 conn15: { driver: &lt;/p&gt;
{ name: &quot;mongo-java-driver&quot;, version: &quot;3.4.2&quot; }
&lt;p&gt;, os: &lt;/p&gt;
{ type: &quot;Linux&quot;, name: &quot;Linux&quot;, architecture: &quot;amd64&quot;, version: &quot;4.4.0-79-generic&quot; }
&lt;p&gt;, platform: &quot;Java/Oracle Corporation/1.8.0_131-8u131-b11-0ubuntu1.16.04.2-b11&quot; }&lt;/p&gt;



&lt;p&gt;&lt;b&gt;and the following is when mongodb is on remote ubuntu but java app is on local windows:&lt;/b&gt;&lt;br/&gt;
2017-06-20T10:12:40.895-0400 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; received client metadata from 10.169.38.18:65137 conn2: { driver: &lt;/p&gt;
{ name: &quot;mongo-java-driver&quot;, version: &quot;3.4.2&quot; }
&lt;p&gt;, os: &lt;/p&gt;
{ type: &quot;Windows&quot;, name: &quot;Windows 10&quot;, architecture: &quot;amd64&quot;, version: &quot;10.0&quot; }
&lt;p&gt;, platform: &quot;Java/Oracle Corporation/1.8.0_131-b11&quot; }&lt;br/&gt;
2017-06-20T10:12:41.305-0400 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; received client metadata from 10.169.38.18:65138 conn3: { driver: &lt;/p&gt;
{ name: &quot;mongo-java-driver&quot;, version: &quot;3.4.2&quot; }
&lt;p&gt;, os: &lt;/p&gt;
{ type: &quot;Windows&quot;, name: &quot;Windows 10&quot;, architecture: &quot;amd64&quot;, version: &quot;10.0&quot; }
&lt;p&gt;, platform: &quot;Java/Oracle Corporation/1.8.0_131-b11&quot; }&lt;/p&gt;



&lt;p&gt;&lt;b&gt;and this is stuff that comes before. Its the same for both runs:&lt;/b&gt;&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=8104 port=27017 dbpath=/var/lib/mongodb 64-bit host=psserver&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v3.4.5&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: 520b8f3092c48d934f0cd78ab5f40fe594f96863&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; allocator: tcmalloc&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; modules: none&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build environment:&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     distmod: ubuntu1604&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     distarch: x86_64&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;     target_arch: x86_64&lt;br/&gt;
2017-06-20T10:12:15.389-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: { config: &quot;/etc/mongod.conf&quot;, net: &lt;/p&gt;
{ port: 27017 }
&lt;p&gt;, security: &lt;/p&gt;
{ authorization: &quot;enabled&quot; }
&lt;p&gt;, storage: { dbPath: &quot;/var/lib/mongodb&quot;, journal: &lt;/p&gt;
{ enabled: true }
&lt;p&gt; }, systemLog: &lt;/p&gt;
{ destination: &quot;file&quot;, logAppend: true, path: &quot;/var/log/mongodb/mongod.log&quot;, quiet: true }
&lt;p&gt; }&lt;br/&gt;
2017-06-20T10:12:15.412-0400 I -        &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Detected data files in /var/lib/mongodb created by the &apos;wiredTiger&apos; storage engine, so setting the active storage engine to &apos;wiredTiger&apos;.&lt;br/&gt;
2017-06-20T10:12:15.413-0400 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.413-0400 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine&lt;br/&gt;
2017-06-20T10:12:15.413-0400 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **          See &lt;a href=&quot;http://dochub.mongodb.org/core/prodnotes-filesystem&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://dochub.mongodb.org/core/prodnotes-filesystem&lt;/a&gt;&lt;br/&gt;
2017-06-20T10:12:15.413-0400 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; wiredtiger_open config: create,cache_size=39746M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: You are running on a NUMA machine.&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **          We suggest launching mongod like this to avoid performance problems:&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **              numactl --interleave=all mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;other options&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is &apos;always&apos;.&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **        We suggest setting it to &apos;never&apos;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is &apos;always&apos;.&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; **        We suggest setting it to &apos;never&apos;&lt;br/&gt;
2017-06-20T10:12:15.599-0400 I CONTROL  &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-06-20T10:12:15.602-0400 I FTDC     &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Initializing full-time diagnostic data capture with directory &apos;/var/lib/mongodb/diagnostic.data&apos;&lt;br/&gt;
2017-06-20T10:12:15.602-0400 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;thread1&amp;#93;&lt;/span&gt; waiting for connections on port 27017&lt;/p&gt;
</comment>
                            <comment id="1601130" author="jeff.yemin" created="Mon, 19 Jun 2017 20:33:22 +0000"  >&lt;blockquote&gt;&lt;p&gt;It works on windows but not when its run in ubuntu.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;To clarify, I have some questions:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Is there a stack trace that you can post, or does it silently fail to drop the collection?&lt;/li&gt;
	&lt;li&gt;Is that when the Java application is run on Ubuntu, or the MongoDB server?&lt;/li&gt;
	&lt;li&gt;Can you attach the MongoDB server logs?&lt;/li&gt;
&lt;/ol&gt;
</comment>
                    </comments>
                    <attachments>
                    </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|ht1i3j:</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>