<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:17:33 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-48592] Fix use-after-free ClockSourceMock bug in transaction_coordinator_test</title>
                <link>https://jira.mongodb.org/browse/SERVER-48592</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6122ee1243ec051d4e1d39efe70235b897f956c5/src/mongo/db/s/transaction_coordinator_test.cpp#L1020&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;transaction_coordinator_test&lt;/a&gt;, a &lt;b&gt;ClockSourceMock&lt;/b&gt; gets associated to a service context that is already used by the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e7fbef74d8b3a59aab2416be8e72fdac8640f088/src/mongo/db/s/transaction_coordinator_test_fixture.cpp#L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;WaitForMajorityService&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;As a result, it is potentially possible that a pointer to the original service context&apos;s &lt;b&gt;ClockSource&lt;/b&gt; is used when &lt;a href=&quot;https://github.com/mongodb/mongo/blob/bbdf0a11d1c61be0760a829e82799129beac7be0/src/mongo/db/s/wait_for_majority_service.cpp#L184-L185&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;waiting&lt;/a&gt; on an operation context instantiated before the &lt;b&gt;ClockSourceMock&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;Check &lt;a href=&quot;https://jira.mongodb.org/browse/BF-17382?focusedCommentId=3188486&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-3188486&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;BF-17382&lt;/a&gt; for additional details.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1372287">SERVER-48592</key>
            <summary>Fix use-after-free ClockSourceMock bug in transaction_coordinator_test</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="3">Duplicate</resolution>
                                        <assignee username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Thu, 4 Jun 2020 16:54:31 +0000</created>
                <updated>Sat, 22 Aug 2020 18:06:04 +0000</updated>
                            <resolved>Sat, 22 Aug 2020 18:06:04 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3353569" author="max.hirschhorn@10gen.com" created="Sat, 22 Aug 2020 18:05:56 +0000"  >&lt;p&gt;Reopening this ticket to close it as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48654&quot; title=&quot;TransactionCoordinatorMetricsTest should install mock tick source before starting WaitForMajorityService&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48654&quot;&gt;&lt;del&gt;SERVER-48654&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3352220" author="pierlauro.sciarelli" created="Fri, 21 Aug 2020 14:24:39 +0000"  >&lt;p&gt;The bug in&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/6122ee1243ec051d4e1d39efe70235b897f956c5/src/mongo/db/s/transaction_coordinator_test.cpp#L1017-L1025&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TransactionCoordinatorMetricsTest::setup()&lt;/a&gt; was caused by &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6122ee1243ec051d4e1d39efe70235b897f956c5/src/mongo/db/s/transaction_coordinator_test.cpp#L1018&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TransactionCoordinatorTestBase::setUp()&lt;/a&gt; being called before &lt;a href=&quot;https://github.com/mongodb/mongo/blob/6122ee1243ec051d4e1d39efe70235b897f956c5/src/mongo/db/s/transaction_coordinator_test.cpp#L1020&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;setting the clock source&lt;/a&gt;, resulting in the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e7fbef74d8b3a59aab2416be8e72fdac8640f088/src/mongo/db/s/transaction_coordinator_test_fixture.cpp#L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TransactionCoordinatorTestFixture::setup()&lt;/a&gt; initializing the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e7fbef74d8b3a59aab2416be8e72fdac8640f088/src/mongo/db/s/transaction_coordinator_test_fixture.cpp#L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;WaitForMajorityService&lt;/a&gt; with an incorrect clock.&lt;/p&gt;

&lt;p&gt;Looking at the current &lt;a href=&quot;https://github.com/mongodb/mongo/blob/2da98e01960de6d24174df19b0b926752b9dbddf/src/mongo/db/s/transaction_coordinator_test.cpp#L1017-L1024&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;TransactionCoordinatorMetricsTest::setup()&lt;/a&gt;, the order has already been correctly switched as the correct clock is initialized before calling &lt;b&gt;TransactionCoordinatorTestBase::setUp()&lt;/b&gt;.&lt;/p&gt;

&lt;p&gt;Closing as gone away.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="1375201">SERVER-48654</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 22 Aug 2020 18:05:56 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 24 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </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>max.hirschhorn@mongodb.com</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxoj6v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxboe7:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4137">Sharding 2020-08-24</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|hxo5g7:</customfieldvalue>

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