<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:45:54 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-58938] Update DBClientCursor::_postBatchResumeToken when running an aggregate command and pass it to the callback function in RSLocalClient::runAggregation</title>
                <link>https://jira.mongodb.org/browse/SERVER-58938</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently we don&apos;t set _postBatchResumeToken on DBClientCursor for an aggregate command. We should, and then should pass it to the callback function in &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ecba23449a26f3d266ffacda7eb98d8386267606/src/mongo/db/rs_local_client.cpp#L177&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;RSLocalClient::runAggregation&lt;/a&gt; to allow a resharding recipient that is fetching from itself (because it&apos;s also a donor) to resume more efficiently.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1834679">SERVER-58938</key>
            <summary>Update DBClientCursor::_postBatchResumeToken when running an aggregate command and pass it to the callback function in RSLocalClient::runAggregation</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="backlog-server-sharding-nyc">[DO NOT USE] Backlog - Sharding NYC</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                            <label>PM-234</label>
                            <label>PM-234-M3</label>
                            <label>PM-234-T-oplog-fetch</label>
                            <label>sharding-nyc-subteam1</label>
                    </labels>
                <created>Wed, 28 Jul 2021 22:08:44 +0000</created>
                <updated>Tue, 6 Dec 2022 01:04:29 +0000</updated>
                            <resolved>Wed, 1 Dec 2021 12:34:55 +0000</resolved>
                                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4223853" author="max.hirschhorn@10gen.com" created="Wed, 1 Dec 2021 12:34:55 +0000"  >&lt;p&gt;Confirmed with Kal that ShardLocal is used only by the config server locally to talk to itself. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49897&quot; title=&quot;Insert no-op entries into oplog buffer collections for resharding so resuming is less wasteful&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49897&quot;&gt;&lt;del&gt;SERVER-49897&lt;/del&gt;&lt;/a&gt; solved the entirety of the issue that shards face around efficient resuming in the lack of user writes to the source collection during a resharding operation. Closing this ticket as &quot;Won&apos;t Do&quot;.&lt;/p&gt;</comment>
                            <comment id="4198965" author="max.hirschhorn@10gen.com" created="Thu, 18 Nov 2021 19:53:03 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Either write a JavaScript test to verify that documents are now written to the localOplogBuffer collection when they weren&apos;t before.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;We should write this JavaScript test first because based on the state of a core dump I was debugging in BF-23392, it seems like replica set shards will use ShardRemote even for their own shard name. Perhaps &lt;a href=&quot;https://github.com/mongodb/mongo/blob/5f8a8c70d017bb424748a49ca31df01b2309e000/src/mongo/db/mongod_main.cpp#L684-L685&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ShardLocal&lt;/a&gt; is only a special case on the config server replica set?&lt;/p&gt;</comment>
                            <comment id="4175864" author="max.hirschhorn@10gen.com" created="Mon, 8 Nov 2021 20:19:03 +0000"  >&lt;p&gt;Acceptance criteria:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Verify that DBCommandCursor no longer guards updating its &amp;#95;postBatchResumeToken member variable around the command being issued as a find command. (Resharding uses an aggregate command.)&lt;/li&gt;
	&lt;li&gt;Follow &lt;a href=&quot;https://github.com/mongodb/mongo/blob/dddb4744ea5c2f19b97239bafaa2abdf11050b31/src/mongo/s/client/shard_remote.cpp#L477-L478&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the semantics in ShardRemote::runAggregation()&lt;/a&gt; to ignore the postBatchResumeToken value except when the getMore batch was empty.&lt;/li&gt;
	&lt;li&gt;Either write a JavaScript test to verify that documents are now written to the localOplogBuffer collection when they weren&apos;t before. Or add a C++ test which does the same because it can take advantage of everything being ShardLocal.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1421056">SERVER-49897</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1940767">SERVER-61841</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25134"><![CDATA[Sharding NYC]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 8 Nov 2021 20:19:03 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 10 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-49897'>SERVER-49897</a></s>]]></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>
                            2 years, 10 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding-nyc</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzuy5b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hraf6n:</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_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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|hzukef:</customfieldvalue>

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