<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:21:45 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-9897] PHP tests for write concern</title>
                <link>https://jira.mongodb.org/browse/SERVER-9897</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I created a PHP script that times how long an insert cursor takes to insert data per each write concern.&lt;/p&gt;


&lt;p&gt;See results below: (write concerns are based off of the PHP driver doc)&lt;/p&gt;

&lt;p&gt;=======================================&lt;br/&gt;
Write concern: 0 : Fire and forget&lt;br/&gt;
Cursor return: 0.0001230240&lt;/p&gt;

&lt;p&gt;Write concern: 1 : Write acknowledged by the primary only&lt;br/&gt;
Cursor return: 0.0548999310  &amp;lt;-- SLOWEST????&lt;/p&gt;

&lt;p&gt;Write concern: 2 : Write confirmed in 2 secondaries&lt;br/&gt;
Cursor return: 0.0135748386&lt;/p&gt;

&lt;p&gt;Write concern: 3 : Write confirmed in 3 secondaries&lt;br/&gt;
Cursor return: 0.0042228699&lt;/p&gt;

&lt;p&gt;Write concern: majority : Write confirmed in the majority of secondaries&lt;br/&gt;
Cursor return: 0.0204229355&lt;/p&gt;

&lt;p&gt;Write concern: j : write acknowledged by primary and the journal flushed to disk&lt;br/&gt;
Cursor return: 0.0119099617&lt;br/&gt;
=======================================&lt;/p&gt;

&lt;p&gt;Do you know why I would see a much higher time in microseconds with write concern 1 (acknowledgement from the primary) compared to all others?&lt;/p&gt;</description>
                <environment>uname -a&lt;br/&gt;
Linux idm-mdb2-s01c 3.2.0-35-generic #55-Ubuntu SMP Wed Dec 5 17:42:16 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="78526">SERVER-9897</key>
            <summary>PHP tests for write concern</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="5">Cannot Reproduce</resolution>
                                        <assignee username="andrew.ryder@mongodb.com">Andrew Ryder</assignee>
                                    <reporter username="alberta@ecollege.com">Albert Aguirre</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jun 2013 20:41:05 +0000</created>
                <updated>Thu, 13 Nov 2014 04:45:09 +0000</updated>
                            <resolved>Tue, 8 Oct 2013 21:23:29 +0000</resolved>
                                    <version>2.2.2</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="428256" author="andrew.ryder@10gen.com" created="Thu, 19 Sep 2013 06:12:41 +0000"  >&lt;p&gt;Hi Albert,&lt;/p&gt;

&lt;p&gt;Haven&apos;t heard back about this and we still haven&apos;t been able to reproduce the issue. Have you had a chance to get the MongoDB setup we previously requested?&lt;/p&gt;

&lt;p&gt;If I haven&apos;t heard back within a couple days I will close this as &quot;unable to reproduce&quot;.&lt;/p&gt;

&lt;p&gt;Thanks for your time.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Andrew&lt;/p&gt;</comment>
                            <comment id="391486" author="andrew.ryder@10gen.com" created="Tue, 30 Jul 2013 01:22:04 +0000"  >&lt;p&gt;Hi Albert,&lt;/p&gt;

&lt;p&gt;I&apos;ve not been able to reproduce your results. Can you please confirm;&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;MongoDB set-up (replica hosts, shards).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;EDIT: sorry, I realised you gave the PHP and Client OS above.&lt;/p&gt;

&lt;p&gt;These are the results I get running your script from MacOS 10.8, PHP 5.5 interactive shell connecting to a Mongo cluster with 5 hosts (no shards).&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Write concern: 0 : Fire and forget &lt;br/&gt;
Cursor return: 0.0000770092&lt;/p&gt;

&lt;p&gt;Write concern: 1 : Write acknowledged by the primary &lt;br/&gt;
Cursor return: 0.0006430149  &lt;/p&gt;

&lt;p&gt;Write concern: 2 : Write confirmed in 2 secondaries &lt;br/&gt;
Cursor return: 0.0028929710  &lt;/p&gt;

&lt;p&gt;Write concern: 3 : Write confirmed in 3 secondaries &lt;br/&gt;
Cursor return: 0.0025188923  &lt;/p&gt;

&lt;p&gt;Write concern: majority : Write confirmed in the majority of secondaries &lt;br/&gt;
Cursor return: 0.0025908947&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Andrew&lt;/p&gt;</comment>
                            <comment id="361865" author="alberta@ecollege.com" created="Mon, 17 Jun 2013 15:54:35 +0000"  >&lt;p&gt;Write concern php code snippet&lt;/p&gt;</comment>
                            <comment id="361857" author="alberta@ecollege.com" created="Mon, 17 Jun 2013 15:48:23 +0000"  >&lt;p&gt;Of course...&lt;/p&gt;

&lt;p&gt;Mongo version: 2.2&lt;br/&gt;
PHP version: PHP 5.3.2-1ubuntu4.19&lt;br/&gt;
Used PHP CLI on Ubuntu&lt;/p&gt;

&lt;p&gt;Heres where I got my write concern PHP info:&lt;br/&gt;
&lt;a href=&quot;http://php.net/manual/en/mongo.writeconcerns.php&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://php.net/manual/en/mongo.writeconcerns.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Code snippet attached&lt;/p&gt;</comment>
                            <comment id="361386" author="stennie" created="Sun, 16 Jun 2013 20:28:46 +0000"  >&lt;p&gt;Hi Albert,&lt;/p&gt;

&lt;p&gt;In order to help us try to reproduce your results, can you please:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;confirm the specific versions of the MongoDB PHP driver &amp;amp; your PHP interpreter&lt;/li&gt;
	&lt;li&gt;attach your PHP test script that sets write concerns &amp;amp; measures timing&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="27981" name="wcLagSnippet.txt" size="1199" author="alberta@ecollege.com" created="Mon, 17 Jun 2013 15:54:35 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 16 Jun 2013 20:28:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 21 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>
                            10 years, 21 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="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alberta@ecollege.com</customfieldvalue>
            <customfieldvalue>andrew.ryder@mongodb.com</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmqkv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>71766</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="10154"><![CDATA[Complete]]></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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht00gn:</customfieldvalue>

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