<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:37:08 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-15162] strengthen journal checks to detect unexpected errors in last journal file as well</title>
                <link>https://jira.mongodb.org/browse/SERVER-15162</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In the case of a crash or filesystem snapshot, the last journal section may be incomplete and therefore appear damaged during recovery on subsequent startup, and that condition is tolerated (assuming a fix for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15111&quot; title=&quot;partially written journal last section causes recovery to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15111&quot;&gt;&lt;del&gt;SERVER-15111&lt;/del&gt;&lt;/a&gt;). Damage to any other journal section is unexpected and indicates a malfunction (such as a storage error). Currently damage to any section in any but the last journal file results in a refusal to finish recovery and a shutdown, as the consequence of such damage may be a large number of errors and inconsistencies in the database.&lt;/p&gt;

&lt;p&gt;However any damage to the last journal file is assumed to be in the last section of that file, and therefore is tolerated - recovery is halted at that point and mongod continues normal startup. This ticket tracks strengthening that test to treat damage in the last journal file to any section but the last as also fatal.&lt;/p&gt;

&lt;p&gt;Unfortunately when journal files are being reused it is not possible to detect with absolute certainty whether any given section is the last section, because the old data following the last section may masquerade as a valid section of the current use of this journal file. However it is possible to detect the last section with high probability:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Every time a journal file is reused it is assigned a new randomly chosen 64-bit file id, and that file id is recorded in the header of every section. By comparing the fileid of the section following the current one with the expected fileid, it is possible to determine whether the current section is the last with a probability of 1 in 2^64 (~10^19) of incorrectly concluding that the current section is not the last.&lt;/li&gt;
	&lt;li&gt;In addition the 128-bit hash of the following section can be checked, giving a probability of incorrectly concluding that the current section is not the last of 1 in 2^(64+128) (~10^57) (assuming for the sake of convenience a perfect hash.)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The net result is a choice between the following imperfect outcomes:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;With the current implementation, there is a small probability p of a malfunction (such as a storage error) damaging a section of the last journal file other than the last section; mongod would terminate recovery and continue with startup at that point with some number of journal sections remaining unprocessed. The consequence is a potentially large number of errors and inconsistencies in the database due to the unprocessed journal sections.&lt;/li&gt;
	&lt;li&gt;If one of the imperfect checks for last journal section given above is implemented, there is a probability of 1 in ~10^19 or ~10^57 (depending on which test is used) of incorrectly concluding that the damaged section is not the last section. The consequence is failure to recover a recoverable journal.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="156729">SERVER-15162</key>
            <summary>strengthen journal checks to detect unexpected errors in last journal file as well</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-execution">Backlog - Storage Execution Team</assignee>
                                    <reporter username="bruce.lucas@mongodb.com">Bruce Lucas</reporter>
                        <labels>
                    </labels>
                <created>Sat, 6 Sep 2014 13:04:52 +0000</created>
                <updated>Tue, 6 Dec 2022 05:01:45 +0000</updated>
                            <resolved>Fri, 14 Sep 2018 19:55:51 +0000</resolved>
                                                                    <component>MMAPv1</component>
                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10220">
                    <name>Tested</name>
                                            <outwardlinks description="tested by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 23 weeks, 4 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>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 23 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-execution</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlohr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>136305</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

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

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