<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:57:39 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-21540] Cannot obtain a clean shutdown on a device mapper device</title>
                <link>https://jira.mongodb.org/browse/SERVER-21540</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have a replicated mongo cluster (no sharding). On a member we have mongo running on a snapshot target device which is based on a DM encrypted device. &lt;br/&gt;
System: x86 server with Ubuntu 14.04 bare metal, mongo running inside a docker container, docker 1.9, mongodb 3.0.7 (3.0.4 shows the same issue), the mongo dbpath is bind mounted on the above mentioned snapshotting device (formatted with ext4).&lt;/p&gt;

&lt;p&gt;The snapshot procedure consists of shutting down mongo with the proper command, followed by stopping and removal of the container.&lt;/p&gt;

&lt;p&gt;In this stage the mongo.lock is empty but wired tiger lock is not. Restarting the member signals a file corruption but proceeds (I&apos;m assuming because it&apos;s an RS). If I take the same snapshot and run a mongo standalone on it it will fail signaling that there are corrupted files (including often wiredtiger.wt).&lt;/p&gt;</description>
                <environment></environment>
        <key id="240113">SERVER-21540</key>
            <summary>Cannot obtain a clean shutdown on a device mapper device</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="4">Incomplete</resolution>
                                        <assignee username="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="michele">Michele Franceschini</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Nov 2015 23:01:45 +0000</created>
                <updated>Thu, 9 Jun 2016 17:35:20 +0000</updated>
                            <resolved>Wed, 10 Feb 2016 20:10:41 +0000</resolved>
                                    <version>3.0.7</version>
                                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1130292" author="ramon.fernandez" created="Sat, 9 Jan 2016 13:42:03 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=michele&quot; class=&quot;user-hover&quot; rel=&quot;michele&quot;&gt;michele&lt;/a&gt;, are you still seeing this behavior on your end? If this is still an issue for you, can you please follow up with the information requested by Thomas above for further investigation?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1116570" author="thomas.schubert" created="Wed, 16 Dec 2015 22:24:29 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=michele&quot; class=&quot;user-hover&quot; rel=&quot;michele&quot;&gt;michele&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I haven&apos;t been able to reproduce an unclean shutdown on my local machine yet. &lt;/p&gt;

&lt;p&gt;To continue to investigate, can you please upload the logs including the shutdown command and subsequent restart? &lt;/p&gt;

&lt;p&gt;Were you able to look into reproducing this behavior without encryption?&lt;/p&gt;

&lt;p&gt;Thank you for your help,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1101987" author="michele" created="Tue, 1 Dec 2015 15:38:55 +0000"  >&lt;p&gt;Hi Thomas,&lt;/p&gt;

&lt;p&gt;1) I&apos;m not using LVM, just DM. The snapshot ready device is formatted with ext4, which afaik supports fsync. There are a bunch of threads out there on fsync being tricky to use e.g.:&lt;br/&gt;
  &lt;a href=&quot;https://lwn.net/Articles/322823/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://lwn.net/Articles/322823/&lt;/a&gt; &lt;br/&gt;
2)  &lt;br/&gt;
sudo docker exec -i &amp;lt;container name&amp;gt; mongo -u &amp;lt;username&amp;gt; -p &amp;lt;password&amp;gt; --ssl --sslAllowInvalidCertificates admin --eval &quot;db.getSiblingDB(&apos;admin&apos;).shutdownServer()&quot;&lt;br/&gt;
sleep 10&lt;br/&gt;
sudo docker stop &amp;lt;container name&amp;gt;&lt;br/&gt;
sudo docker rm &amp;lt;container name&amp;gt;&lt;br/&gt;
3) I&apos;ll work on it&lt;br/&gt;
4) I have not tried. I will look into it. I would say that no, on a non DM encrypted device my experience is that the system starts fine (but this was in a non sharded env)&lt;br/&gt;
5) it&apos;s a docker run with net=host and mongo is run in a script protected by supervisord. Please let me know if you need more info&lt;/p&gt;</comment>
                            <comment id="1097833" author="thomas.schubert" created="Tue, 24 Nov 2015 23:56:07 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=michele&quot; class=&quot;user-hover&quot; rel=&quot;michele&quot;&gt;michele&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for the report. Can you please ensure that the file system supports fsync() on directories? As noted &lt;a href=&quot;https://docs.mongodb.org/manual/administration/production-notes/#mongodb-on-linux&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, this operation must be supported.&lt;/p&gt;

&lt;p&gt;If that is not the cause of the problem we will need a few more details to continue to investigate this behavior.&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;I assume you are using LVM, can you confirm?&lt;/li&gt;
	&lt;li&gt;What specific command are you using to shut down the &lt;tt&gt;mongod&lt;/tt&gt; instance and the container?&lt;/li&gt;
	&lt;li&gt;Can you provide the logs starting when you initiate the shutdown command as well as the log when you restart the node that includes the error message?&lt;/li&gt;
	&lt;li&gt;Does this behavior appear without encryption&lt;/li&gt;
	&lt;li&gt;Can you provide the invocation that you used to start the docker container? Also, if you can provide an example of how you created the docker container?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </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>Tue, 24 Nov 2015 23:56:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 5 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 5 weeks, 4 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>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>michele</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrkoc7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsehyf:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Setup a mongo cluster with a replica set. In one machine encrypt with DM a disk, prepare for snapshotting also with DM, format ext4, mount and run the mongo RS member on it.&lt;br/&gt;
Shutdown mongo and restart standalone.&lt;/p&gt;</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|hsffon:</customfieldvalue>

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