<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:36:07 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-14835] fix fassert 16143 on PPC64 LE systems in LogFile::synchronousAppend()</title>
                <link>https://jira.mongodb.org/browse/SERVER-14835</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Linux on PPC64 use 64kB page size, making this crash whereas it works well.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/pull/735&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/735&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="151477">SERVER-14835</key>
            <summary>fix fassert 16143 on PPC64 LE systems in LogFile::synchronousAppend()</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="benety.goh@mongodb.com">Benety Goh</assignee>
                                    <reporter username="ctrl_alt_suppr">Corentin Baron</reporter>
                        <labels>
                            <label>pull-request</label>
                    </labels>
                <created>Fri, 8 Aug 2014 14:19:28 +0000</created>
                <updated>Tue, 18 Nov 2014 20:58:15 +0000</updated>
                            <resolved>Thu, 25 Sep 2014 20:32:28 +0000</resolved>
                                                    <fixVersion>2.7.7</fixVersion>
                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="727448" author="xgen-internal-githook" created="Thu, 25 Sep 2014 20:26:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;benety&apos;, u&apos;name&apos;: u&apos;Benety Goh&apos;, u&apos;email&apos;: u&apos;benety@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14835&quot; title=&quot;fix fassert 16143 on PPC64 LE systems in LogFile::synchronousAppend()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14835&quot;&gt;&lt;del&gt;SERVER-14835&lt;/del&gt;&lt;/a&gt; removed PPC64-specific value for AlignedBuilder::Alignment. reject zero block size from ioctl()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/68881762f612542372f8f55d61db0bf7856da762&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/68881762f612542372f8f55d61db0bf7856da762&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="727447" author="xgen-internal-githook" created="Thu, 25 Sep 2014 20:26:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;corentinbaron&apos;, u&apos;name&apos;: u&apos;Corentin Baron&apos;, u&apos;email&apos;: u&apos;corentin.baron@ext.bull.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14835&quot; title=&quot;fix fassert 16143 on PPC64 LE systems in LogFile::synchronousAppend()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14835&quot;&gt;&lt;del&gt;SERVER-14835&lt;/del&gt;&lt;/a&gt; Fixed alignment check in log file for PPC64&lt;/p&gt;

&lt;p&gt;Closes #769&lt;/p&gt;

&lt;p&gt;Signed-off-by: Benety Goh &amp;lt;benety@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0adbbde35e8ca1696145f21bde5c311b3da6d4e5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0adbbde35e8ca1696145f21bde5c311b3da6d4e5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="715739" author="ctrl_alt_suppr" created="Wed, 10 Sep 2014 15:16:29 +0000"  >&lt;p&gt;Updated&lt;/p&gt;</comment>
                            <comment id="715639" author="benety.goh" created="Wed, 10 Sep 2014 14:01:30 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ctrl_alt_suppr&quot; class=&quot;user-hover&quot; rel=&quot;ctrl_alt_suppr&quot;&gt;ctrl_alt_suppr&lt;/a&gt;, the patch did not compile under Windows. I&apos;ve provided a more detailed feedback in &lt;a href=&quot;https://github.com/mongodb/mongo/pull/769&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;#769&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="715575" author="benety.goh" created="Wed, 10 Sep 2014 13:19:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ctrl_alt_suppr&quot; class=&quot;user-hover&quot; rel=&quot;ctrl_alt_suppr&quot;&gt;ctrl_alt_suppr&lt;/a&gt;, thank you  for rebasing on master. I&apos;ll be running &lt;a href=&quot;https://github.com/mongodb/mongo/pull/769&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;#769&lt;/a&gt; through our CI system before taking a closer look at the code.&lt;/p&gt;</comment>
                            <comment id="715473" author="ctrl_alt_suppr" created="Wed, 10 Sep 2014 10:51:44 +0000"  >&lt;p&gt;Updated and put on master:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/pull/769&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/769&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="712317" author="benety.goh" created="Fri, 5 Sep 2014 13:20:52 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ctrl_alt_suppr&quot; class=&quot;user-hover&quot; rel=&quot;ctrl_alt_suppr&quot;&gt;ctrl_alt_suppr&lt;/a&gt; I&apos;ve added some initial feedback to the pull request.&lt;/p&gt;</comment>
                            <comment id="712176" author="ctrl_alt_suppr" created="Fri, 5 Sep 2014 08:04:25 +0000"  >&lt;p&gt;Updated:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/pull/766&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/pull/766&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="706706" author="ctrl_alt_suppr" created="Thu, 28 Aug 2014 14:18:17 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Sorry for the late response, unfortunately I had different requests on other fronts.&lt;/p&gt;

&lt;p&gt;I tried this method, and it requires to also have AlignedBuilder::Alignment changed since on our systems ioctl(_fd, BLKBSZGET) actually gives 65536. The issue being this value is a static const and therefore can&apos;t be set at runtime. We&apos;d need to either make it a non const, either pass the value to gcc as a define.&lt;/p&gt;

&lt;p&gt;Corentin.&lt;/p&gt;</comment>
                            <comment id="689837" author="matt.kangas@10gen.com" created="Wed, 13 Aug 2014 20:39:25 +0000"  >&lt;p&gt;To clarify Andy&apos;s point: mongo::LogFile uses O_DIRECT if available (Linux 2.4.10 and up)&lt;/p&gt;

&lt;p&gt;O_DIRECT requirements:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Linux 2.6
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;Alignment, length, and offset must be multiples of the &lt;ins&gt;physical_block_size&lt;/ins&gt; of the device. (Typically 512 bytes)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Linux 2.4
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;Alignment, length, and offset must be multiples of the &lt;ins&gt;logical_block_size&lt;/ins&gt; of the underlying file system. (Typically 4096 bytes)&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So we need to keep the fassert, but we shouldn&apos;t test for multiples of g_minOSPageSizeBytes (from mmap.h). Instead, we should call ioctl(_fd, BLKBSZGET) to obtain &lt;tt&gt;size_t logical_block_size&lt;/tt&gt; immediately after a successful open(). Then test for multiples of this value when _direct == true.&lt;/p&gt;

&lt;p&gt;We also need to confirm that BLKBSZGET always works when O_DIRECT is defined. (= Confirm BLKBSZGET is defined in Linux 2.4.10 and up)&lt;/p&gt;

&lt;p&gt;See:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Michael Kerrisk. &#8220;The Linux Programming Interface.&#8221; Section 13.6.&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://people.redhat.com/msnitzer/docs/io-limits.txt&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://people.redhat.com/msnitzer/docs/io-limits.txt&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://www.quora.com/Why-does-O_DIRECT-require-I-O-to-be-512-byte-aligned&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.quora.com/Why-does-O_DIRECT-require-I-O-to-be-512-byte-aligned&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="685028" author="schwerin" created="Fri, 8 Aug 2014 15:56:28 +0000"  >&lt;p&gt;It used to be the case that direct-io writes on Linux had to start at a block-aligned address and consist of whole-block-sized writes.  Because we did not have access to the block size on the journal file system at the time, we simply used the page size as a proxy.  Removing this assertion does remove that safeguard, if only on PPC systems.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="128873">SERVER-13452</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 8 Aug 2014 15:56:28 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 20 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10249"><![CDATA[Cannot]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>benety.goh@mongodb.com</customfieldvalue>
            <customfieldvalue>ctrl_alt_suppr</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>matt.kangas</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlq8n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>131474</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></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>
                                

                        </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|hrl1fb:</customfieldvalue>

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