<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:19 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-266] Remove support for updating an existing GridFS file</title>
                <link>https://jira.mongodb.org/browse/CSHARP-266</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;No other driver supports updating an existing GridFS file. The reason given is that this is a very dangerous operation, because while the update is in progress the GridFS file is in an intermediate state and if any other process or thread tries to read the GridFS file during that time the results will be unpredictable.&lt;/p&gt;

&lt;p&gt;This involves removing or changing the following methods:&lt;/p&gt;

&lt;p&gt;MongoGridFS class:&lt;br/&gt;
    remove AppendText method&lt;br/&gt;
    rename Create methods to CreateNew (because Create FileMode is no longer supported)&lt;br/&gt;
    rename CreateText methods to CreateTextNew (because Create FileMode is no longer supported)&lt;br/&gt;
    Open methods won&apos;t support FileModes: Create, OpenOrCreate, Truncate or Append (only Open or CreateNew will be supported)&lt;/p&gt;

&lt;p&gt;MongoGridFSFileInfo class:&lt;br/&gt;
    remove AppendText method&lt;br/&gt;
    rename Create methods to CreateNew (because Create FileMode is no longer supported)&lt;br/&gt;
    rename CreateText methods to CreateTextNew (because Create FileMode is no longer supported)&lt;br/&gt;
    Open methods won&apos;t support FileModes: Create, OpenOrCreate, Truncate or Append (only Open or CreateNew will be supported)&lt;/p&gt;

&lt;p&gt;This change is scheduled for version 1.3 to provide sufficient time for comments. &lt;/p&gt;
</description>
                <environment></environment>
        <key id="19310">CSHARP-266</key>
            <summary>Remove support for updating an existing GridFS file</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jul 2011 21:58:31 +0000</created>
                <updated>Mon, 10 Jun 2019 14:50:26 +0000</updated>
                            <resolved>Mon, 10 Jun 2019 14:50:26 +0000</resolved>
                                    <version>1.1</version>
                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="534038" author="rstam" created="Thu, 3 Apr 2014 13:53:40 +0000"  >&lt;p&gt;This feature is only dangerous if multiple processes/threads attempt to use the &lt;b&gt;same&lt;/b&gt; GridFS file simultaneously (either multiple updaters, or other readers while the update is in progress). To use this feature safely requires application level locking to ensure that this doesn&apos;t happen.&lt;/p&gt;

&lt;p&gt;An additional danger is that if the client crashes or loses network connectivity before it is done updating the GridFS file (and closing the stream) the GridFS file is left in an inconsistent state.&lt;/p&gt;

&lt;p&gt;I don&apos;t know what the final decision on removing this feature will be... we&apos;ve delayed action on this for such a long time because the right course of action does not seem immediately obvious.&lt;/p&gt;</comment>
                            <comment id="533256" author="jonathan.gaillard@dominionenterprises.com" created="Wed, 2 Apr 2014 21:40:39 +0000"  >&lt;p&gt;The in place updates have given us tremendous performance boost over insertion + deletion and I would much prefer the feature to stay in some safe form.&lt;/p&gt;</comment>
                            <comment id="41458" author="rstam" created="Sat, 9 Jul 2011 02:50:32 +0000"  >&lt;p&gt;Thanks for your feedback. We definitely need to know if people would be affected by removing this feature. Your suggestion that perhaps we could provide a safe way to use this feature instead of just removing it is very helpful. Looking forward to more comments from other users. Thanks again.&lt;/p&gt;</comment>
                            <comment id="41457" author="emmanuelbuah" created="Sat, 9 Jul 2011 02:00:58 +0000"  >&lt;p&gt;Rather than removing the feature, isn&apos;t it possible to provide a blocking feature when a file is in read state. Appending to a file is a needed operation, especially saving chucked files where we need to append the chuncks for the files. I know other drivers don&apos;t support it but a blocking feature might be a better solution. Obviously, you guys have a better understanding of its risks. Thanks for all your hard work.&lt;/p&gt;</comment>
                            <comment id="41415" author="rstam" created="Fri, 8 Jul 2011 21:59:36 +0000"  >&lt;p&gt;This change is backward breaking if you were using this capability.&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|hsme5b:</customfieldvalue>

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