<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:00:02 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>[SERVER-22316] MongoDB.Driver.WriteConcernException in specific update queries</title>
                <link>https://jira.mongodb.org/browse/SERVER-22316</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When trying to make a particular update query (query.txt) over a stored document (storage.txt) the following error appear:(error.txt)&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;WriteConcern detected an error &apos;assertion src/mongo/db/storage/mmap_v1/btree/key.cpp:608&apos;. (Response was { &quot;connectionId&quot; : 1006, &quot;err&quot; : &quot;assertion src/mongo/db/storage/mmap_v1/btree/key.cpp:608&quot;, &quot;n&quot; : 0, &quot;ok&quot; : 1.0 }). &lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Type: MongoDB.Driver.WriteConcernException&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;I realized that this only happens when the query have the exact field name &quot;size_of_raw_data&quot; with value 512. If i change the value to 513 or 511 or whatever else, the query executes in normal way. &lt;/p&gt;</description>
                <environment>OS: Ubuntu 15.04&lt;br/&gt;
Proc: Intel Core i7-4790 Quad-Core CPU @ 3.60GHz&lt;br/&gt;
RAM: 32GB&lt;br/&gt;
Profile: 1 slow:100&lt;br/&gt;
</environment>
        <key id="261009">SERVER-22316</key>
            <summary>MongoDB.Driver.WriteConcernException in specific update queries</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="kdeltared">Rodrigo Cetera</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Jan 2016 21:43:54 +0000</created>
                <updated>Mon, 20 Jun 2016 18:24:38 +0000</updated>
                            <resolved>Mon, 20 Jun 2016 18:24:38 +0000</resolved>
                                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1300108" author="thomas.schubert" created="Mon, 20 Jun 2016 18:24:38 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kdeltared&quot; class=&quot;user-hover&quot; rel=&quot;kdeltared&quot;&gt;kdeltared&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for getting back to us with the answers to my questions. From your responses, I do not see a clear explanation for the corruption you have observed. It may have been the result of an unclean shutdown some time in the past or faulty disk drives. Unfortunately, as I mentioned previously determining the root cause of this corruption is very challenging without a reproduction. If this issue persists after you have ensured the integrity of your disk drives, please let us know and we will continue to investigate this issue.&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1267503" author="ramon.fernandez" created="Wed, 18 May 2016 13:11:36 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kdeltared&quot; class=&quot;user-hover&quot; rel=&quot;kdeltared&quot;&gt;kdeltared&lt;/a&gt;, looks like your reply fell through the cracks &amp;#8211; my apologies for that. I&apos;ve reopened the ticket to take a closer look.&lt;/p&gt;</comment>
                            <comment id="1196320" author="kdeltared" created="Tue, 8 Mar 2016 14:54:09 +0000"  >&lt;p&gt;Hi, sorry for the delay.&lt;br/&gt;
    1. There is no replica set.&lt;br/&gt;
    2. Nothing else logged.&lt;br/&gt;
    3. Journaling is activated&lt;br/&gt;
    4. I&#180;m using 5 local HDDs in Software Raid 5 configuration.&lt;br/&gt;
    5. Files never moved or coppied.&lt;br/&gt;
    6. Never been restored.&lt;br/&gt;
    7. By the time, there is no BackUp&lt;/p&gt;

&lt;p&gt;Right now, we are thinking to migrate to MongoDB 3.2 with WiredTiger and make other changes like SDDs disk and raid configuration, so we are going to rebuild the DB from scratch. Anyway I will execute repairDatabase in maintenance cycle to see what happens. &lt;br/&gt;
For the moment, changing the field name help to keep things in production, but would be interesting to know what really happened.&lt;br/&gt;
I will post the results from repairDatabese when i can run it.&lt;/p&gt;

&lt;p&gt;Thank You,&lt;br/&gt;
Rodrigo&lt;/p&gt;</comment>
                            <comment id="1194001" author="ramon.fernandez" created="Sat, 5 Mar 2016 14:54:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kdeltared&quot; class=&quot;user-hover&quot; rel=&quot;kdeltared&quot;&gt;kdeltared&lt;/a&gt;, we haven&apos;t heard back from you for some time, so I&apos;m going to close this ticket. If this is still an issue for you please provide the information requested above by Thomas so we can investigate further.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1160526" author="thomas.schubert" created="Tue, 2 Feb 2016 04:02:29 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kdeltared&quot; class=&quot;user-hover&quot; rel=&quot;kdeltared&quot;&gt;kdeltared&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This assertion failure generally indicates that some or all of the data files have become corrupt in some way. It&apos;s not clear if the corruption is in the index or the data itself, and in cases like this, it&apos;s very difficult to be confident that the corruption is isolated beyond the file level. &lt;/p&gt;

&lt;p&gt;To help us understand what&apos;s going on here, I&apos;ve assembled a list of routine questions about data storage and the configuration of your environment. We can use this to begin debugging the underlying issue, but beware in these sorts of situations it can be difficult to understand the cause of the corruption without a straightforward reproduction. &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;If this node is part of a replicaset, are other members affected?&lt;/li&gt;
	&lt;li&gt;Around this operation, were there any other server errors logged?&lt;/li&gt;
	&lt;li&gt;Are you using journaling?&lt;/li&gt;
	&lt;li&gt;What kind of underlying storage mechanism are you using? Are the storage devices attached locally or over the network? Are the disks SSDs or HDDs? What kind of RAID and/or volume management system are you using?&lt;/li&gt;
	&lt;li&gt;Have you manipulated (coppied or moved) the underling database files?&lt;/li&gt;
	&lt;li&gt;Have you ever restored this instance from backups?&lt;/li&gt;
	&lt;li&gt;What method do you use to create backups?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;I would recommend a clean &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/resync-replica-set-member/#automatically-sync-a-member&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resync&lt;/a&gt; from a node that is not affected. If that is not possible, I would recommend executing &lt;a href=&quot;https://docs.mongodb.org/manual/reference/command/repairDatabase/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;repairDatabase&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Additionally, please consider doing a thorough integrity check of the affected node&apos;s disk drives. If the assertion failures continue to persist, you may need to replace them.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1157106" author="kdeltared" created="Thu, 28 Jan 2016 20:37:15 +0000"  >&lt;p&gt;Ramon, Im am using MongoDB 3.0.9 with MMAP engine.&lt;br/&gt;
I attached the profile log for the query if it is of help. I dont have any script.&lt;br/&gt;
Indexes are follows:&lt;br/&gt;
&lt;em&gt;id&lt;/em&gt; : 1&lt;br/&gt;
file_id : hashed&lt;br/&gt;
hash.md5 : hashed&lt;br/&gt;
hash.sha2 : hashed&lt;br/&gt;
mime_type : hashed&lt;br/&gt;
particular_header.file_entropy : 1&lt;br/&gt;
particular_header.headers.file_header.TimeDateStamp : 1&lt;br/&gt;
particular_header.imports.functions : 1&lt;br/&gt;
particular_header.imports.lib : 1&lt;br/&gt;
particular_header.sections.md5 : 1&lt;br/&gt;
particular_header.sections.name : 1&lt;br/&gt;
particular_header.sections.sha1 : 1&lt;br/&gt;
particular_header.sections.sha2 : 1&lt;br/&gt;
particular_header.sections.size_of_raw_data : 1&lt;br/&gt;
size: 1&lt;/p&gt;

&lt;p&gt;Thank you&lt;/p&gt;</comment>
                            <comment id="1154618" author="ramon.fernandez" created="Tue, 26 Jan 2016 23:08:01 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kdeltared&quot; class=&quot;user-hover&quot; rel=&quot;kdeltared&quot;&gt;kdeltared&lt;/a&gt;, what version of MongoDB are you using? What indexes are defined on this collection?&lt;/p&gt;

&lt;p&gt;I imported the document from &lt;tt&gt;storage.txt&lt;/tt&gt; on a MongoDB 3.2.1 instance and I was able to successfully run the query. Can you please provide more information that can help us investigate? If you have a repro script that would be even better.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="106591" name="error.txt" size="1555" author="kdeltared" created="Tue, 26 Jan 2016 21:43:54 +0000"/>
                            <attachment id="106844" name="exception.txt" size="3658" author="kdeltared" created="Thu, 28 Jan 2016 20:34:22 +0000"/>
                            <attachment id="106592" name="query.txt" size="137" author="kdeltared" created="Tue, 26 Jan 2016 21:43:54 +0000"/>
                            <attachment id="106593" name="storage.txt" size="7181" author="kdeltared" created="Tue, 26 Jan 2016 21:43:54 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 26 Jan 2016 21:57:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 34 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 34 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>kdeltared</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkjwn:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hshqtz:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hsfajr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>