<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:51 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-689] DBCursor isn&apos;t thread-safe !</title>
                <link>https://jira.mongodb.org/browse/JAVA-689</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The DBCursor object of the java driver api doesn&apos;t seem to be thread-safe:&lt;/p&gt;

&lt;p&gt;I execute dbcursorobject.next() within the run() method of a Runnable in order to get back each document of a collection within a separate thread.&lt;/p&gt;

&lt;p&gt;As a result I get some documents duplicate, others are missing and randomly a NullPointerException occurs.&lt;/p&gt;

&lt;p&gt;I guess neither next() nor hasNext() are thread-safe here.&lt;br/&gt;
Since the java-driver claims to be thread-safe that might have to be fixed.&lt;/p&gt;

</description>
                <environment>openjdk 7 on linux x64</environment>
        <key id="55396">JAVA-689</key>
            <summary>DBCursor isn&apos;t thread-safe !</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="bugdigger">Mark Henzel</reporter>
                        <labels>
                            <label>driver</label>
                    </labels>
                <created>Tue, 6 Nov 2012 16:10:44 +0000</created>
                <updated>Thu, 6 Apr 2023 16:31:47 +0000</updated>
                            <resolved>Thu, 8 Nov 2012 13:33:00 +0000</resolved>
                                    <version>2.9.1</version>
                    <version>2.9.2</version>
                    <version>2.9.3</version>
                                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="183501" author="jeff.yemin" created="Wed, 7 Nov 2012 12:39:03 +0000"  >&lt;p&gt;Not all classes in the driver are thread safe, and DBCursor is one of them, by intention.  Generally, iterators like DBCursor are not.  We&apos;ll make sure to document that.&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|hrkeg7:</customfieldvalue>

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