<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:51:56 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-289] driver does not allow doc sizes matching the server limit, for both insert and find</title>
                <link>https://jira.mongodb.org/browse/JAVA-289</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;we upped server limit to 16MB.&lt;br/&gt;
driver still limits around 3MB.&lt;/p&gt;</description>
                <environment></environment>
        <key id="14969">JAVA-289</key>
            <summary>driver does not allow doc sizes matching the server limit, for both insert and find</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="antoine">Antoine Girbal</assignee>
                                    <reporter username="antoine">Antoine Girbal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Mar 2011 21:31:40 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:55 +0000</updated>
                            <resolved>Thu, 3 Mar 2011 20:29:36 +0000</resolved>
                                                    <fixVersion>2.5</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="25258" author="auto" created="Fri, 4 Mar 2011 18:38:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-289&quot; title=&quot;driver does not allow doc sizes matching the server limit, for both insert and find&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-289&quot;&gt;&lt;del&gt;JAVA-289&lt;/del&gt;&lt;/a&gt;: detect max bson size from servers. Update whenever master changes. Fetch on 1st op in single server mode.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/f634fe8456607d97de7fffb38aa98d9e1cd82f75&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/f634fe8456607d97de7fffb38aa98d9e1cd82f75&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25112" author="auto" created="Wed, 2 Mar 2011 23:37:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-289&quot; title=&quot;driver does not allow doc sizes matching the server limit, for both insert and find&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-289&quot;&gt;&lt;del&gt;JAVA-289&lt;/del&gt;&lt;/a&gt;: convenience methods to obtain max bson size object&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/2ee21e9d56a9f4ffe900b217c5215de7402787d8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/2ee21e9d56a9f4ffe900b217c5215de7402787d8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25103" author="antoine" created="Wed, 2 Mar 2011 22:09:22 +0000"  >&lt;p&gt;It is messy to try to put limits on driver side:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;driver may be talking to dbs with different size limits&lt;/li&gt;
	&lt;li&gt;all operations must apply limits&lt;/li&gt;
	&lt;li&gt;for updates if you do multiple $set of large fields, doc on server side would go over limit&lt;/li&gt;
	&lt;li&gt;every time we change server limits, have to change driver&apos;s&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Since server is properly returning an error if doc is too large, then driver just has to relay error as MongoException.&lt;/p&gt;

&lt;p&gt;Before driver only checked on inserts with limit of 4MB.&lt;br/&gt;
Now driver only checks on inserts with limit of 32MB, which is higher than server side.&lt;br/&gt;
It is more of a sanity test.&lt;/p&gt;</comment>
                            <comment id="25102" author="auto" created="Wed, 2 Mar 2011 22:02:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;agirbal&apos;, u&apos;name&apos;: u&apos;agirbal&apos;, u&apos;email&apos;: u&apos;antoine@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-289&quot; title=&quot;driver does not allow doc sizes matching the server limit, for both insert and find&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-289&quot;&gt;&lt;del&gt;JAVA-289&lt;/del&gt;&lt;/a&gt;: driver does not allow doc sizes matching the server limit, for both insert and find&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a74335490ecff178589627e6ee4d157933607bf8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a74335490ecff178589627e6ee4d157933607bf8&lt;/a&gt;&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|hrgitb:</customfieldvalue>

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