<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:02: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-4421] Deprecate WriteConcernError errorLabels property</title>
                <link>https://jira.mongodb.org/browse/JAVA-4421</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;Currently the &lt;tt&gt;com.mongodb.bulk.WriteConcernError&lt;/tt&gt; contains a &lt;tt&gt;Set&amp;lt;String&lt;/tt&gt; property for error labels, based on a faulty assumption (based on our spec tests) that the &lt;tt&gt;writeConcernError&lt;/tt&gt; document in the server response contains &lt;tt&gt;errorLabels&lt;/tt&gt;, when in fact they are included as a field in the top-level response document.  This has led to bugs, the known ones having been fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4419&quot; title=&quot;Error labels are not added to MongoWriteConcernException&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4419&quot;&gt;&lt;del&gt;JAVA-4419&lt;/del&gt;&lt;/a&gt;, and some confusing code.  Let&apos;s deprecate &lt;tt&gt;com.mongodb.bulk.WriteConcernError#errorLabels&lt;/tt&gt; to start the process of getting rid of this.&lt;/p&gt;

&lt;p&gt;Eventually we will also want to do the following:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Consolidate errorLabel handing in &lt;tt&gt;MongoWriteConcernException&lt;/tt&gt;, since currently they are added by the code that constructs &lt;tt&gt;MongoWriteConcernException&lt;/tt&gt;.  This will require a new constructor for that exception, and the others can be deprecated.&lt;/li&gt;
	&lt;li&gt;Refactor code that creates instances of &lt;tt&gt;com.mongodb.bulk.WriteConcernError&lt;/tt&gt; to stop relying on the &lt;tt&gt;errorLabels&lt;/tt&gt; property&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="1941618">JAVA-4421</key>
            <summary>Deprecate WriteConcernError errorLabels property</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="13201">Fixed</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Dec 2021 19:46:59 +0000</created>
                <updated>Thu, 9 Nov 2023 19:00:46 +0000</updated>
                            <resolved>Wed, 12 Jan 2022 21:40:45 +0000</resolved>
                                                    <fixVersion>4.5.0</fixVersion>
                                    <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4289534" author="xgen-internal-githook" created="Wed, 12 Jan 2022 21:40:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Ramasai Tadepalli&apos;, &apos;email&apos;: &apos;18359686+ramasai1@users.noreply.github.com&apos;, &apos;username&apos;: &apos;ramasai1&apos;}
&lt;p&gt;Message: Deprecate WriteConcernError errorLabels property(#840)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4421&quot; title=&quot;Deprecate WriteConcernError errorLabels property&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4421&quot;&gt;&lt;del&gt;JAVA-4421&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: Jeff Yemin &amp;lt;jeff.yemin@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/6f2aa50d51b7cacbad9f5d832797eaf01616e144&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/6f2aa50d51b7cacbad9f5d832797eaf01616e144&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4289532" author="mms-build@10gen.com" created="Wed, 12 Jan 2022 21:40:16 +0000"  >&lt;p&gt; &lt;a href=&quot;https://github.com/ramasai1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;jyemin&lt;/a&gt; merged a pull request (&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/840&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;JAVA-4421  Remove errorLabels from WriteConcernError&lt;/a&gt;) into the following branch:&lt;br/&gt;
                       master: &lt;a href=&quot;https://github.com/ramasai1/mongo-java-driver/commit/6f2aa50d51b7cacbad9f5d832797eaf01616e144&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;6f2aa50d51b7cacbad9f5d832797eaf01616e144&lt;/a&gt;&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2438853">JAVA-5153</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzswqf:</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>