<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:20 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-269] GridFS upload bug</title>
                <link>https://jira.mongodb.org/browse/CSHARP-269</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;This problem was already found and described at &lt;a href=&quot;http://groups.google.com/group/mongodb-user/browse_thread/thread/dddeeb7be75a944a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user/browse_thread/thread/dddeeb7be75a944a&lt;/a&gt;. To recap &amp;#8211; adding a file to a newly created GridFS database that is hosted in a replica set, when slaveOk is set to true, leads to a &quot;Command &apos;filemd5&apos; failed: exception: best guess plan requested, but scan and order required&quot; error.&lt;br/&gt;
The problem is that indexes are not created for a new database, since the check in MongoGridFS.EnsureIndexes(int) prohibits index creation for slaveOk connections.&lt;br/&gt;
I concluded a patch (will attach it later) that fixes the problem. Please take note that it does it in a bit indirect way &amp;#8211; I thought that introducing some kind of &quot;ignoreSlaveOk&quot; parameter to MognoGridFS.EnsureIndex methods wouldn&apos;t be any good, so I just check the request nesting level (GridFS writes are done within nested requests so it&apos;s a fine indicator).&lt;/p&gt;</description>
                <environment></environment>
        <key id="19671">CSHARP-269</key>
            <summary>GridFS upload bug</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="onyxmaster">Aristarkh Zagorodnikov</reporter>
                        <labels>
                            <label>commands</label>
                            <label>driver</label>
                            <label>gridfs</label>
                    </labels>
                <created>Mon, 18 Jul 2011 11:19:26 +0000</created>
                <updated>Thu, 2 Apr 2015 18:28:17 +0000</updated>
                            <resolved>Tue, 19 Jul 2011 03:55:59 +0000</resolved>
                                    <version>1.2</version>
                                    <fixVersion>1.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="42979" author="rstam" created="Tue, 19 Jul 2011 03:55:59 +0000"  >&lt;p&gt;See commit comments:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/23346cd0f440eb70be46c161065c7ddb55f45099&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/23346cd0f440eb70be46c161065c7ddb55f45099&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="42761" author="onyxmaster" created="Mon, 18 Jul 2011 11:33:42 +0000"  >&lt;p&gt;I would like to note that this patch does not address the problem of calling EnsureIndex manually when slaveOk is enabled, so maybe a completely different solution is required (e.g. EnsureIndex ignoring slaveOk completely, since I don&apos;t know the original reasons for this check).&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="12273" name="CSHARP-269.patch" size="734" author="onyxmaster" created="Mon, 18 Jul 2011 11:22:23 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hrh4hr:</customfieldvalue>

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