<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:58:01 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-2765] [GridFs] - Provide ability to append binary data in existing file</title>
                <link>https://jira.mongodb.org/browse/JAVA-2765</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The idea to be able to append new binary data into existing files is interesting for use cases such as a resumable file upload where the application server receives the data in chunks and has to append it into an existing fs.file.&lt;/p&gt;

&lt;p&gt;The C# Driver exposes this functionality if you use &lt;a href=&quot;http://api.mongodb.com/csharp/current/html/T_MongoDB_Driver_GridFS_MongoGridFSStream.htm&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoGridFSStream Class&lt;/a&gt;. &lt;br/&gt;
The idea is basically to get a stream of the file write your new bits in the end and close the file.&lt;/p&gt;</description>
                <environment></environment>
        <key id="490893">JAVA-2765</key>
            <summary>[GridFs] - Provide ability to append binary data in existing file</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="ross@mongodb.com">Ross Lawley</assignee>
                                    <reporter username="gustavodegeus">Gustavo de Geus</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Feb 2018 14:56:23 +0000</created>
                <updated>Mon, 4 Mar 2019 16:36:13 +0000</updated>
                            <resolved>Mon, 4 Mar 2019 16:36:13 +0000</resolved>
                                                                    <component>GridFS</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2169468" author="ross@10gen.com" created="Mon, 4 Mar 2019 16:36:01 +0000"  >&lt;p&gt;After a review by fellow driver authors, it has been decided not to add this to the GridFS API due to the potential for conflicting reads, during the write / append process.&lt;/p&gt;

&lt;p&gt;You could use the existing API to create a new file that is based on the original file and the extra data.&lt;/p&gt;</comment>
                            <comment id="2114451" author="scott.lhommedieu" created="Mon, 14 Jan 2019 18:16:36 +0000"  >&lt;p&gt;This should be dealt with at a driver spec level to ensure gridfs files are handled similarly across all drivers.&#160; &#160;See:&#160;SPEC-1202&lt;/p&gt;</comment>
                            <comment id="2109791" author="jeff.yemin" created="Wed, 9 Jan 2019 14:09:02 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=scott.lhommedieu&quot; class=&quot;user-hover&quot; rel=&quot;scott.lhommedieu&quot;&gt;scott.lhommedieu&lt;/a&gt; there are concurrency issues even with append-only modifications.  How would we handle two clients attempting to append to the same file concurrently?  &lt;/p&gt;

&lt;p&gt;I think we could do this with transactions once they support &amp;gt;16MB updates and sharded clusters.&lt;/p&gt;</comment>
                            <comment id="2109470" author="scott.lhommedieu" created="Wed, 9 Jan 2019 06:07:08 +0000"  >&lt;p&gt;I don&apos;t see any reason why we can&apos;t support this.&#160; Append only is viable/feasible.&#160; &lt;/p&gt;

&lt;p&gt;We wouldn&apos;t extend this to insert in the middle of an existing file which would be a complex operation with more sharp edges (finding chunks, moving chunks, concurrency from clients) than we could manage.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </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|htgvzb:</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>