<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:32: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-33021] Server started up using different collection wt files</title>
                <link>https://jira.mongodb.org/browse/SERVER-33021</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Under the collection folder, I had 5 wt files for my collection.&lt;br/&gt;
For some reason, the server created another 5 files and started to use them.&lt;/p&gt;

&lt;p&gt;For exemple, now I have collection-10-2456006026897874487.wt with 77MB and collection-10-4298854520594963500.wt with 2GB.&lt;/p&gt;

&lt;p&gt;And I can&apos;t access the data from collection-10-4298854520594963500.wt&lt;/p&gt;

&lt;p&gt;Even the collection &quot;local&quot; has this duplicated files. collection-0-2456006026897874487.wt and collection-0-4298854520594963500.wt&lt;/p&gt;

&lt;p&gt;On the server log, I found just a &quot;SERVER RESTARTED&quot; on the day that the new wt files were created.&lt;/p&gt;

&lt;p&gt;What can I do to recovery my data? &lt;/p&gt;</description>
                <environment></environment>
        <key id="489837">SERVER-33021</key>
            <summary>Server started up using different collection wt files</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="mark.agarunov">Mark Agarunov</assignee>
                                    <reporter username="lgmaestrelli">Luigi Maestrelli</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Jan 2018 21:10:16 +0000</created>
                <updated>Wed, 21 Mar 2018 04:32:50 +0000</updated>
                            <resolved>Wed, 31 Jan 2018 22:57:51 +0000</resolved>
                                    <version>3.6.2</version>
                                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1791624" author="lgmaestrelli" created="Thu, 1 Feb 2018 12:03:00 +0000"  >&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;Thank for all the help.&lt;br/&gt;
Is there a way to open the wt collection files and try to recovery at least some data?&lt;br/&gt;
Read the file in some raw form?&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                            <comment id="1791277" author="mark.agarunov" created="Wed, 31 Jan 2018 22:57:29 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lgmaestrelli&quot; class=&quot;user-hover&quot; rel=&quot;lgmaestrelli&quot;&gt;lgmaestrelli&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Unfortunately, this behavior indicates that there was corruption on the disk, most often cause by a faulty storage layer. In this situation, our best recommendation would be to &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/resync-replica-set-member/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;resync the affected node&lt;/a&gt; or &lt;a href=&quot;https://docs.mongodb.com/manual/core/backups/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;restore from a backup&lt;/a&gt; if possible.&lt;/p&gt;

&lt;p&gt;To prevent this type of problem in the future please take note of the following guidelines to help mitigate any issues related to unreliable storage layers or server failures. &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Make sure your &lt;a href=&quot;https://docs.mongodb.com/manual/administration/production-notes/#disk-and-storage-systems&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;underlying storage is configured in an optimal way&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Schedule and perform regular checks of the integrity of your filesystems and disks.&lt;/li&gt;
	&lt;li&gt;Make sure to update MongoDB to the &lt;a href=&quot;https://docs.mongodb.com/manual/release-notes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;most recent version&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Never manipulate the underlying database files in any way while &lt;tt&gt;mongod&lt;/tt&gt; is running.&lt;/li&gt;
	&lt;li&gt;Always keep up to date &lt;a href=&quot;https://docs.mongodb.com/manual/core/backups/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;backups of your databases&lt;/a&gt; and verify that you have a process in place to restore them.&lt;/li&gt;
	&lt;li&gt;Use a &lt;a href=&quot;https://docs.mongodb.com/manual/replication/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;replica set&lt;/a&gt; for improved reliability.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1791144" author="lgmaestrelli" created="Wed, 31 Jan 2018 21:10:57 +0000"  >&lt;p&gt;Hi.&lt;/p&gt;

&lt;p&gt;That did not solved.&lt;br/&gt;
I can only access a few documents, and not the full collection.&lt;/p&gt;</comment>
                            <comment id="1791116" author="mark.agarunov" created="Wed, 31 Jan 2018 20:51:38 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lgmaestrelli&quot; class=&quot;user-hover&quot; rel=&quot;lgmaestrelli&quot;&gt;lgmaestrelli&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;ve attached a repair attempt with the new files you&apos;ve provided. Please let me know if this fixes the issue.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                            <comment id="1790212" author="lgmaestrelli" created="Wed, 31 Jan 2018 10:01:43 +0000"  >&lt;p&gt;Hello.&lt;/p&gt;

&lt;p&gt;After replacing the files I got a checksum error.&lt;br/&gt;
I&apos;m attaching the log from the server startup.&lt;br/&gt;
Perhaps I sent you the wrong WiredTiger files. I previous attached the file from my machine and not the original files from the server. Sorry.&lt;br/&gt;
I will remove the old files and upload the new ones.&lt;/p&gt;

&lt;p&gt;Thank you.&lt;/p&gt;</comment>
                            <comment id="1789877" author="mark.agarunov" created="Tue, 30 Jan 2018 22:30:07 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lgmaestrelli&quot; class=&quot;user-hover&quot; rel=&quot;lgmaestrelli&quot;&gt;lgmaestrelli&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your report. I&apos;ve attached a repair attempt of the files you provided. Please extract these files and replace them in your &lt;tt&gt;$dbpath&lt;/tt&gt; and let us know if it resolves the issue. If you are still seeing errors after replacing these files, please provide the complete logs from the affected node(s) so that we can further investigate.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Mark&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="177393" name="WiredTiger" size="49" author="lgmaestrelli" created="Wed, 31 Jan 2018 10:38:14 +0000"/>
                            <attachment id="177394" name="WiredTiger.turtle" size="1002" author="lgmaestrelli" created="Wed, 31 Jan 2018 10:38:14 +0000"/>
                            <attachment id="177395" name="WiredTiger.wt" size="98304" author="lgmaestrelli" created="Wed, 31 Jan 2018 10:38:15 +0000"/>
                            <attachment id="177392" name="mongodb.log" size="3302" author="lgmaestrelli" created="Wed, 31 Jan 2018 10:38:14 +0000"/>
                            <attachment id="177448" name="repair-SERVER-33021-2.tar.gz" size="4310" author="mark.agarunov" created="Wed, 31 Jan 2018 20:51:51 +0000"/>
                            <attachment id="177348" name="repair-SERVER-33021.tar.gz" size="4303" author="mark.agarunov" created="Tue, 30 Jan 2018 22:29:42 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 30 Jan 2018 22:30:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 1 week, 6 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 1 week, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>lgmaestrelli</customfieldvalue>
            <customfieldvalue>mark.agarunov</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htp5yv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htgplj:</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_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|htos3j:</customfieldvalue>

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