<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:15 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-425] Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)</title>
                <link>https://jira.mongodb.org/browse/JAVA-425</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;MongoDB Server 2.0 supports a number of new features with getLastError which the driver must support:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;the boolean field &quot;j&quot; is now supported, when true it causes a wait for group commit when journaling is enabled (instead of the previous fsync: true semantic when journaling is enabled)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.mongodb.org/display/DOCS/2.0+Release+Notes#2.0ReleaseNotes-ReplicaSets&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Data Center Awareness&lt;/a&gt; - MongoDB 2.0 allows the value for &apos;w&apos; to be a string
	&lt;ul&gt;
		&lt;li&gt;The value may be a tag such as &quot;customerData&quot;&lt;/li&gt;
		&lt;li&gt;The value may also be &quot;majority&quot; which ensures the write propagates to a majority of nodes.  We should probably make a constant for this.&lt;/li&gt;
		&lt;li&gt;(There may be an object support, someone needs to clarify this as I can&apos;t find documented examples)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="21723">JAVA-425</key>
            <summary>Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="brendan">Brendan W. McAdams</assignee>
                                    <reporter username="brendan">Brendan W. McAdams</reporter>
                        <labels>
                            <label>SERVER_V2</label>
                    </labels>
                <created>Wed, 31 Aug 2011 14:51:21 +0000</created>
                <updated>Tue, 25 Jun 2013 16:51:14 +0000</updated>
                            <resolved>Thu, 8 Sep 2011 11:31:16 +0000</resolved>
                                                    <fixVersion>2.7</fixVersion>
                                    <component>API</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="63431" author="auto" created="Fri, 28 Oct 2011 20:48:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt;: throw exception if w is wrong type&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/c5ee94af18c51f1adf04d321b22fd3a48e41da22&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/c5ee94af18c51f1adf04d321b22fd3a48e41da22&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="63381" author="auto" created="Fri, 28 Oct 2011 18:24:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt;: further cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/3eae785e650a22e20efa5b2371c6e4d090f9b713&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/3eae785e650a22e20efa5b2371c6e4d090f9b713&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="63335" author="auto" created="Fri, 28 Oct 2011 14:32:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt;: restore continueOnErrorForInsert to restore buildability of code&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8f159f3b9f33e24193287fd6700cba21459109c3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8f159f3b9f33e24193287fd6700cba21459109c3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="63277" author="auto" created="Fri, 28 Oct 2011 07:04:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: - &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt;: fix cast exception in case W is a String&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/224e6b06d33ba82b599506e4d0195bc045e308eb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/224e6b06d33ba82b599506e4d0195bc045e308eb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="62361" author="auto" created="Mon, 24 Oct 2011 22:02:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt;: WriteConcern in &quot;Default&quot; (W &amp;lt; 0) passes through empty getLastError to allow use of getLastErrorDefaults setting on server&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/e8e2bc8962816572740a08e51307d10b3003ef38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/e8e2bc8962816572740a08e51307d10b3003ef38&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52929" author="brendan" created="Thu, 8 Sep 2011 11:31:16 +0000"  >&lt;p&gt;Interfaces laid out; needs review.&lt;/p&gt;</comment>
                            <comment id="52928" author="auto" created="Thu, 8 Sep 2011 11:30:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt; - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;TEst WriteConcern interface still works; had to adjust test to call getW() instead of package protected internal value&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/5026b1b5b9d61b74ffe0a47681f1ea05478dc84e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/5026b1b5b9d61b74ffe0a47681f1ea05478dc84e&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="52927" author="auto" created="Thu, 8 Sep 2011 11:30:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt; - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Changed MAJORITY_SAFE static to MAJORITY&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/585de5fe4e1b8e225214d43418b02902c910d7d1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/585de5fe4e1b8e225214d43418b02902c910d7d1&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="52926" author="auto" created="Thu, 8 Sep 2011 11:30:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt; - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Added String based constructor for WriteConcern-by-tag&lt;/li&gt;
	&lt;li&gt;Added static majorityWriteConcern helper for those wanting a Majority with configurable wtimeout, fsync and j&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2dc40585bba980fc2f48dd2b13ea4ae67999dce9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2dc40585bba980fc2f48dd2b13ea4ae67999dce9&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="52925" author="auto" created="Thu, 8 Sep 2011 11:30:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;bwmcadams&apos;, u&apos;name&apos;: u&apos;Brendan W. McAdams&apos;, u&apos;email&apos;: u&apos;brendan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-425&quot; title=&quot;Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-425&quot;&gt;&lt;del&gt;JAVA-425&lt;/del&gt;&lt;/a&gt; - Support MongoDB Server 2.0 getLastError Changes (j, w=string/number)&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Migrated WriteConcern to support String or Int arguments against w; call getWValue or getWString for non-int values.&lt;/li&gt;
	&lt;li&gt;Added &quot;J&quot; flag to WriteConcern&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/86a38c89badf12ffc4540d0a20cdd53025de261d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/86a38c89badf12ffc4540d0a20cdd53025de261d&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hrhbqn:</customfieldvalue>

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