<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:06:05 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-66671] Log full &apos;shardCollection&apos; operation spec in the oplog during reshardCollection operation</title>
                <link>https://jira.mongodb.org/browse/SERVER-66671</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;After &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63437&quot; title=&quot;Expose all events on &amp;#39;system.resharding.*&amp;#39; collections when &amp;#39;showSystemEvents&amp;#39; is true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63437&quot;&gt;&lt;del&gt;SERVER-63437&lt;/del&gt;&lt;/a&gt; is completed, we will be logging the &lt;tt&gt;shardCollection&lt;/tt&gt; no-op oplog entry during resharding operation. But the spec currently only includes the &lt;tt&gt;shardCollection&lt;/tt&gt; and &lt;tt&gt;shardKey&lt;/tt&gt; fields. We should log the full &lt;tt&gt;shardCollection&lt;/tt&gt; command spec so that it&apos;s consistent with the user requested shardCollection operation. We currently do not have access to the other parameters on the recipient shard. We need this information propagated from the config server. &lt;/p&gt;</description>
                <environment></environment>
        <key id="2053000">SERVER-66671</key>
            <summary>Log full &apos;shardCollection&apos; operation spec in the oplog during reshardCollection operation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-server-cluster-scalability">Backlog - Cluster Scalability</assignee>
                                    <reporter username="arun.banala@mongodb.com">Arun Banala</reporter>
                        <labels>
                            <label>cs-subteam1</label>
                            <label>sharding-nyc-subteam1</label>
                    </labels>
                <created>Mon, 23 May 2022 17:27:41 +0000</created>
                <updated>Tue, 12 Dec 2023 17:02:55 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4605331" author="max.hirschhorn@10gen.com" created="Thu, 9 Jun 2022 17:50:32 +0000"  >&lt;p&gt;Copying my Slack messages about the work involved to have the shards be aware of the &lt;tt&gt;numInitialChunks&lt;/tt&gt; and &lt;tt&gt;collation&lt;/tt&gt; command parameters:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The ReshardingCoordinator constructs it and would have access to the values to fill in&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/config/configsvr_reshard_collection_cmd.cpp#L201&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/config/configsvr_reshard_collection_cmd.cpp#L201&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/resharding/resharding_donor_recipient_common.cpp#L250&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/resharding/resharding_donor_recipient_common.cpp#L250&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/resharding/resharding_donor_recipient_common.cpp#L283&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/db/s/resharding/resharding_donor_recipient_common.cpp#L283&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I think you&apos;d also need to add the same optional members to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/s/resharding/type_collection_fields.idl#L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/e97e4ff09cdb2398b571683312b2ddf92694a025/src/mongo/s/resharding/type_collection_fields.idl#L84&lt;/a&gt; which is the actual struct shards parse from the coordinator&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Another option for this ticket is to wait until the ReshardingCoordinator (runs on config server primary) has been moved and unified into the ReshardCollectionCoordinator (runs on primary of the primary shard for database) where the primary shard would have access to the full reshardCollection command and the reshardingUUID because it would be generating the latter itself.&lt;/p&gt;</comment>
                            <comment id="4572057" author="bernard.gorman" created="Wed, 25 May 2022 13:10:46 +0000"  >&lt;p&gt;This may become an issue in the future; the only reason it&apos;s OK at the moment is that all &lt;tt&gt;shardCollection&lt;/tt&gt;-related fields specified in the &lt;tt&gt;reshardCollection&lt;/tt&gt; command, aside from the shard key itself, must either be default-valued or are not relevant for C2C.&lt;/p&gt;

&lt;p&gt;Another option proposed by &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=max.hirschhorn%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;max.hirschhorn@mongodb.com&quot;&gt;max.hirschhorn@mongodb.com&lt;/a&gt;, which seems preferable to the artificial &lt;tt&gt;shardCollection&lt;/tt&gt; event added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63437&quot; title=&quot;Expose all events on &amp;#39;system.resharding.*&amp;#39; collections when &amp;#39;showSystemEvents&amp;#39; is true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63437&quot;&gt;&lt;del&gt;SERVER-63437&lt;/del&gt;&lt;/a&gt;, is to log a system-only &lt;tt&gt;reshardCollectionBegin&lt;/tt&gt; event at the start of the resharding operation that includes all details of the &lt;tt&gt;reshardCollection&lt;/tt&gt; command. At present there is no good place to do this; we need to include the &lt;tt&gt;reshardingUUID&lt;/tt&gt; in the event, but no shard-based component knows all the details of the original command PLUS the resharding UUID until after the operation completes.&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26583"><![CDATA[Cluster Scalability]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 25 May 2022 13:10:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 34 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>r.scott@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 34 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>arun.banala@mongodb.com</customfieldvalue>
            <customfieldvalue>backlog-server-cluster-scalability</customfieldvalue>
            <customfieldvalue>bernard.gorman@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|i0vxfb:</customfieldvalue>

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

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