<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:54 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>[GODRIVER-2134] Unnecessary error checking on decoder setContext and Reset</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2134</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description></description>
                <environment></environment>
        <key id="1853949">GODRIVER-2134</key>
            <summary>Unnecessary error checking on decoder setContext and Reset</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13203">Gone away</resolution>
                                        <assignee username="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="sultan.kz19991@gmail.com">Sultan Da</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Aug 2021 03:16:21 +0000</created>
                <updated>Fri, 27 Oct 2023 20:01:15 +0000</updated>
                            <resolved>Thu, 2 Sep 2021 12:00:00 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4036092" author="backlog-server-pm" created="Thu, 2 Sep 2021 12:00:00 +0000"  >&lt;p&gt;There hasn&apos;t been any recent activity on this ticket, so we&apos;re resolving it. Thanks for reaching out! Please feel free to comment on this if you&apos;re able to provide more information.&lt;/p&gt;</comment>
                            <comment id="4007134" author="benji.rewis" created="Wed, 18 Aug 2021 17:46:00 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sultan.kz19991%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;sultan.kz19991@gmail.com&quot;&gt;sultan.kz19991@gmail.com&lt;/a&gt;&#160;and thanks for your report!&lt;/p&gt;

&lt;p&gt;To clarify, are you asking that we modify the function signatures&#160;(&lt;tt&gt;de/en)coder.SetContext&lt;/tt&gt;,&#160;(&lt;tt&gt;de/en)coder.SetRegistry&lt;/tt&gt; and &lt;tt&gt;(de/en)coder.SetContext&lt;/tt&gt;&#160;to return void instead of &lt;tt&gt;error&lt;/tt&gt;? That would be a backwards-breaking API change, unfortunately, so we probably won&apos;t do that.&lt;/p&gt;

&lt;p&gt;Or, are you asking that we stop checking the return value of those functions when they are called internally in the Go driver? That would not be backwards-breaking, but if we ever modified the functions to actually return an error, we&apos;d be at risk for ignoring the new error value accidentally.&lt;/p&gt;

&lt;p&gt;I do agree that it&apos;s odd these functions return &lt;tt&gt;error&lt;/tt&gt;. They&apos;re quite old, so I don&apos;t have full context on that design decision, but one argument I can see is for &quot;future-proofing&quot;. If we ever change the internal logic of those functions such that they now return errors, the function signature won&apos;t have to change and API won&apos;t be broken.&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|hzi9rr:</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>