<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:16 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-2453] Manually ID&apos;d Versioned Entities are not Optimistically Locked</title>
                <link>https://jira.mongodb.org/browse/JAVA-2453</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;For Entities that have non DB-Generated IDs, &quot;Saves&quot; to the DB are not optimistically locked. For example, it is possible to have two Versioned Entities with the same primary key and null versions and one will overwrite the other. This is undesirable when primary keys are meaningful and meaningful data is associated with the Entity.&lt;/p&gt;

&lt;p&gt;This behavior is exposed by the following test:&lt;/p&gt;

&lt;p&gt;{{&lt;br/&gt;
    @Test(expected = ConcurrentModificationException.class)&lt;br/&gt;
    public void testManuallyVersionedConcurrentModification() &lt;/p&gt;
{
        final String id = UUID.randomUUID().toString();

        final ManuallyVersionedEntity entity1 = new ManuallyVersionedEntity();
        final ManuallyVersionedEntity entity2 = new ManuallyVersionedEntity();

        entity1.setId(id);
        entity2.setId(id);

        getDs().save(entity1);
        getDs().save(entity2);
    }
&lt;p&gt;}}&lt;/p&gt;</description>
                <environment></environment>
        <key id="355729">JAVA-2453</key>
            <summary>Manually ID&apos;d Versioned Entities are not Optimistically Locked</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="Sage-Pierce">Sage M Pierce</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Feb 2017 21:23:12 +0000</created>
                <updated>Tue, 21 Feb 2017 09:39:48 +0000</updated>
                            <resolved>Tue, 21 Feb 2017 09:39:48 +0000</resolved>
                                    <version>3.4.2</version>
                                                    <component>Write Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1504732" author="ross@10gen.com" created="Tue, 21 Feb 2017 09:39:48 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=Sage-Pierce&quot; class=&quot;user-hover&quot; rel=&quot;Sage-Pierce&quot;&gt;Sage-Pierce&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Firstly, thank you for the ticket and the PR, it will be followed up on Github. As this project is for the Mongo Java Driver only I&apos;m marking it as &quot;won&apos;t fix&quot; - this only due to the context of this Jira Project.&lt;/p&gt;

&lt;p&gt;As you may have noticed Morphia is supported via Github issues and Pull requests directly and your PR will be followed up there.&lt;/p&gt;

&lt;p&gt;Thanks again,&lt;/p&gt;

&lt;p&gt;Ross&lt;/p&gt;</comment>
                            <comment id="1504528" author="sage-pierce" created="Mon, 20 Feb 2017 21:27:26 +0000"  >&lt;p&gt;Created PR here: &lt;a href=&quot;https://github.com/mongodb/morphia/pull/1152&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/morphia/pull/1152&lt;/a&gt;&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|hsv9e7:</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>