<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:41 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>[CSHARP-1110] Make RawBsonDocument.dispose() an no-op</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1110</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;RawBsonDocument currently refers to the raw bytes using a reference counted reference directly into the underlying I/O buffers.&lt;/p&gt;

&lt;p&gt;This is good for avoiding copying the bytes, but dangerous for correct memory management. RawBsonDocument is IDisposable for this reason, but any failure to call Dispose results in the underlying I/O buffer not being properly returned to the pool. Also, any remaining reference to even a single raw document (in a buffer that may contain many documents) is enough to prevent the entire buffer from being returned to the pool.&lt;/p&gt;

&lt;p&gt;Perhaps it would be better to go ahead and copy the bytes out of the I/O buffers at the time the RawBsonDocument is created, thus allowing the I/O buffer to be returned to the pool much sooner (and preventing the scenario where failure to call Dispose prevents the buffer from being returned at all).&lt;/p&gt;

&lt;p&gt;While this would involve one additional copy of the bytes, the cost would still be insignificant compared to deserialization into a regular BsonDocument.&lt;/p&gt;

&lt;p&gt;The same would apply to RawBsonArray, LazyBsonDocument and LazyBsonArray.&lt;/p&gt;</description>
                <environment></environment>
        <key id="170388">CSHARP-1110</key>
            <summary>Make RawBsonDocument.dispose() an no-op</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Nov 2014 13:26:42 +0000</created>
                <updated>Thu, 31 Mar 2022 00:28:15 +0000</updated>
                                                                            <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="488364">CSHARP-2159</issuekey>
        </issuelink>
                            </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|hrf9zr:</customfieldvalue>

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