<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:37 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-156] Deleting a document withing collection is not done when using the document (sometimes)</title>
                <link>https://jira.mongodb.org/browse/JAVA-156</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Consider that we have a document with some fields. If I try to delete like below, it can happen sometimes that it is not deleted in some occasions without returning any exception and/or WriteResult error:&lt;/p&gt;

&lt;p&gt;		DBObject q = new BasicDBObjectBuilder().start().add(&quot;_id&quot;, new ObjectId(id)).get();&lt;br/&gt;
		DBCursor res = mongoDBConnector.getContacts().find(q);&lt;br/&gt;
		if (res.hasNext()) &lt;/p&gt;
{
			mongoDBConnector.getContacts().remove(res.next());
		}
&lt;p&gt;	&lt;/p&gt;

&lt;p&gt;However, I can delete successfully by using the field _id of the document like below:&lt;/p&gt;

&lt;p&gt;		DBObject q = new BasicDBObjectBuilder().start().add(&quot;_id&quot;, new ObjectId(id)).get();&lt;br/&gt;
		mongoDBConnector.getContacts().remove(q);&lt;/p&gt;</description>
                <environment>Windows, Linux</environment>
        <key id="12933">JAVA-156</key>
            <summary>Deleting a document withing collection is not done when using the document (sometimes)</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="5">Cannot Reproduce</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="moammo59">Amir Moulavi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 27 Aug 2010 13:24:07 +0000</created>
                <updated>Fri, 29 Oct 2010 02:50:54 +0000</updated>
                            <resolved>Fri, 27 Aug 2010 13:58:05 +0000</resolved>
                                    <version>2.2</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="17489" author="moammo59" created="Fri, 27 Aug 2010 15:20:47 +0000"  >&lt;p&gt;Unfortunately I can not attach any source since I am not allowed. But &lt;br/&gt;
here comes another interesting info. I tested on both windows and Linux&lt;br/&gt;
and the problem only occurred when the target DB is on Linux. So I think it&lt;br/&gt;
has nothing to do with the driver. &lt;/p&gt;</comment>
                            <comment id="17486" author="tonyh" created="Fri, 27 Aug 2010 14:40:13 +0000"  >&lt;p&gt;Can&apos;t reproduce. Waiting for clarification from Reporter.&lt;/p&gt;</comment>
                            <comment id="17485" author="eliot" created="Fri, 27 Aug 2010 13:58:05 +0000"  >&lt;p&gt;Your example works perfectly for me.&lt;/p&gt;

&lt;p&gt;If you can send an entire java program that shows the problem, I can investigate further.&lt;/p&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|hrhcxb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14894</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>