<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:13 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-6954] FlushViewOfFile with error 487 when trying to do repair database and recreate capped collection several times</title>
                <link>https://jira.mongodb.org/browse/SERVER-6954</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;After making nearly 10 attempts to do repair database, drop capped collection, create a new capped collection with different size a Mongo db windows service terminates and shows the following error in log file:&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;   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;[DataFileSync] FlushViewOfFile for E:/Serena/SBM/Common/Diagnostics/MongoDb/data/sbm.0 failed with error 487 after 1 attempts taking 0 ms&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;The size of capped collection is ranged from 10000MB to 10010MB.&lt;br/&gt;
I&apos;ve seen similar issues, but none of them were related with repairing database.&lt;/p&gt;</description>
                <environment>Microsoft Windows Web Server 2008R2, 64-bit&lt;br/&gt;
Microsoft Windows Server 2008R2 Standard, 64-bit</environment>
        <key id="49600">SERVER-6954</key>
            <summary>FlushViewOfFile with error 487 when trying to do repair database and recreate capped collection several times</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="surikov.pavel@gmail.com">Pavel Surikov</reporter>
                        <labels>
                            <label>WIndows</label>
                            <label>community-team</label>
                            <label>crash</label>
                            <label>service</label>
                    </labels>
                <created>Thu, 6 Sep 2012 16:17:54 +0000</created>
                <updated>Wed, 10 Dec 2014 23:06:42 +0000</updated>
                            <resolved>Tue, 19 Aug 2014 22:19:31 +0000</resolved>
                                    <version>2.0.7</version>
                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="695991" author="matt.kangas@10gen.com" created="Tue, 19 Aug 2014 22:19:31 +0000"  >&lt;p&gt;Same underlying issue as &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-10516&quot; title=&quot;mongod crashes when re-mapping above user address space of 8TB on Windows&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-10516&quot;&gt;&lt;del&gt;SERVER-10516&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="161556" author="pavel_surikov" created="Fri, 7 Sep 2012 08:50:54 +0000"  >&lt;p&gt;I&apos;ve added steps to reproduce the defect:&lt;br/&gt;
Script_FlushViewOfFile.txt - steps I used&lt;br/&gt;
Script_FlushViewOfFile_Result.txt - server log.&lt;/p&gt;</comment>
                            <comment id="161346" author="pavel_surikov" created="Thu, 6 Sep 2012 22:03:22 +0000"  >&lt;p&gt;Hi Tad,&lt;/p&gt;

&lt;p&gt;The reason why I was using &apos;repair database&apos; is because I needed to reduce the size of the files created by Mongo db. Each time I change the capped collection size I end up with new files. Even though I rarely use collections larger than 5GB I got 22GB of data. On 32-bit systems there was also a problem of hitting 2GB limit.&lt;/p&gt;

&lt;p&gt;I&apos;ll prepare the exact sequence of steps I was doing, but in general: I&apos;m performing a &apos;repair database&apos;, dropping existing capped collection of one size, and creating another collection with the same name, but with a different size. The goal is to configure the size of the capped collection we use for logs from a windows application. When I was testing it, I tried to change the size the way I described several times. The number of attempts may be different, but in average I did 10 attempts before service terminates.&lt;/p&gt;

&lt;p&gt;As for the --nojournal option, I need to take a look why we didn&apos;t use it.&lt;br/&gt;
Before changing the size there were only a few operations of updating sbm.conf collection with a several documents. The collection is not large and there only a dozen of element that need to be updated.&lt;/p&gt;

</comment>
                            <comment id="161249" author="tad" created="Thu, 6 Sep 2012 18:34:23 +0000"  >&lt;p&gt;Thank you for the bug report and for the log files.&lt;/p&gt;

&lt;p&gt;Were your 10 attempts because you would get the FlushViewOfFile error 487 every time?  Why was &quot;repair database&quot; needed?  Were you seeing corruption?&lt;/p&gt;

&lt;p&gt;If I was to reproduce your bug here, what sequence of steps should I follow?&lt;/p&gt;

&lt;p&gt;Is there a reason why you are running with --nojournal?  The journal-related memory issues in Windows are fixed in version 2.0.7.&lt;/p&gt;

&lt;p&gt;From the logs, it looks like there was a lot of activity in the sbm database (judging from the extremely long flush times), followed by a drop of the sbm.diag collection.  In each log file, there is a drop of sbm.diag in the same second that you get your FlushViewOfFile failure.  It seems likely that these are related and I&apos;m trying to figure out what you are doing, so some sort of step-by-step set of instructions would be helpful.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="86007">SERVER-10516</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="73333">SERVER-9489</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="19776" name="Script_FlushViewOfFile.txt" size="1101" author="surikov.pavel@gmail.com" created="Fri, 7 Sep 2012 08:50:54 +0000"/>
                            <attachment id="19777" name="Script_FlushViewOfFile_Result.txt" size="41366" author="surikov.pavel@gmail.com" created="Fri, 7 Sep 2012 08:50:54 +0000"/>
                            <attachment id="19652" name="ServerLogFlushViewOfFile_webServer2008.txt" size="29891" author="surikov.pavel@gmail.com" created="Thu, 6 Sep 2012 16:17:54 +0000"/>
                            <attachment id="19653" name="ServerLogFlushViewOfFile_webServer2008_verbose.txt" size="53471" author="surikov.pavel@gmail.com" created="Thu, 6 Sep 2012 16:17:54 +0000"/>
                            <attachment id="19654" name="ServerLogFlushViewOfFile_win2008_verbose.txt" size="61195" author="surikov.pavel@gmail.com" created="Thu, 6 Sep 2012 16:17:54 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 6 Sep 2012 18:34:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 26 weeks, 1 day 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-8</customfieldvalue>
                        </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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 26 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10022"><![CDATA[Windows]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>matt.kangas</customfieldvalue>
            <customfieldvalue>surikov.pavel@gmail.com</customfieldvalue>
            <customfieldvalue>tad</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnpo7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrg2s7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7352</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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>
                                

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

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