<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:02 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-775] getLastError should ensure db.requestStart has been called</title>
                <link>https://jira.mongodb.org/browse/JAVA-775</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;I&apos;ve been using MongoDB for quite a long time and didn&apos;t know about db.requestStart() until this past week. If you&apos;re going to call getLastError than it seems like it would be nice to ensure that db.requestStart() has been called. This could be an optional feature to not break existing code.&lt;/p&gt;

&lt;p&gt;Or an even better question is why is getLastError a separate command? That has always seemed very odd to me. Why not just add an option where the original request can return the error in the response? Then you would save a network round-trip.&lt;/p&gt;</description>
                <environment></environment>
        <key id="66762">JAVA-775</key>
            <summary>getLastError should ensure db.requestStart has been called</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="chengas123">Ben McCann</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Feb 2013 08:07:24 +0000</created>
                <updated>Tue, 25 Jun 2013 11:22:20 +0000</updated>
                            <resolved>Tue, 25 Jun 2013 11:22:20 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="367186" author="jeff.yemin" created="Tue, 25 Jun 2013 11:21:19 +0000"  >&lt;p&gt;That&apos;s correct, and we are going to deprecate it in the next release and remove it in 3.0.&lt;/p&gt;</comment>
                            <comment id="278254" author="chengas123" created="Thu, 28 Feb 2013 16:50:53 +0000"  >&lt;p&gt;Hmmm. Interesting. I&apos;m not sure I quite understand yet though. Are you saying that with a write concern that the write request response will return whether there was an error and that you don&apos;t need an extra round-trip to see if there was an error? Is there some reason that getLastError hasn&apos;t been deprecated if you never need it?&lt;/p&gt;</comment>
                            <comment id="278025" author="jeff.yemin" created="Thu, 28 Feb 2013 12:43:09 +0000"  >&lt;p&gt;In practice, you should never need to call DB.getLastError or WriteResult.getLastError.  Instead, use the WriteConcern that you want when you do the write.  If you do, then the getLastError call will be effectively piggy-backed on to the write operation, regardless of whether you use requestStart.&lt;/p&gt;

&lt;p&gt;You can set WriteConcern at many levels, from MongoOptions, MongoClient/Mongo, DB, DBCollection, all the way down to individual write operations.&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="77907">JAVA-846</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hrmf13:</customfieldvalue>

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