<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:29:10 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-75039] $out should be able to replace a time-series collection with a non time-series collection </title>
                <link>https://jira.mongodb.org/browse/SERVER-75039</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Support was added in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72687&quot; title=&quot;Support for $out to Time-series collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72687&quot;&gt;&lt;del&gt;SERVER-72687&lt;/del&gt;&lt;/a&gt; for $out to write to time-series collection. Therefore, $out can create time-series collection and will overwrite an existing time-series collection if one exists. However, we can extend this functionality, so $out can replace a non time-series collection if a time-series collection exists in the namespace.&#160;&lt;/p&gt;

&lt;p&gt;This was initially discussed in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74061&quot; title=&quot;Support $out for time-series on secondaries and sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74061&quot;&gt;&lt;del&gt;SERVER-74061&lt;/del&gt;&lt;/a&gt;. A few considerations made this ticket outside the scope of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74061&quot; title=&quot;Support $out for time-series on secondaries and sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74061&quot;&gt;&lt;del&gt;SERVER-74061&lt;/del&gt;&lt;/a&gt;:&#160;&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;We must find a way to rename a view (which is not allowed as of the time writing). This would mean we would either have to change the renameCollection() command, or we would have to drop the view first and then call renameCollection. However, we want to ensure both dropping the view and renaming collection succeed, and that they are done atomically.&lt;/li&gt;
	&lt;li&gt;It is not obvious what collection options would be passed from creating a non time-series collection from a time-series collections. Usually,&#160;&lt;tt&gt;$out&lt;/tt&gt;&#160;will forward all collection options to the target collection if the source collection exists. However, options have different meanings and different validations from a non time-series collection and a time-series collection. For example, time-series collections can&apos;t have&#160;&lt;tt&gt;temp&lt;/tt&gt;&#160;nor&#160;&lt;tt&gt;clusteredIndex&lt;/tt&gt;&#160;but non time-series collections can. Time-series collections can have&#160;&lt;tt&gt;expireAfterSeconds&lt;/tt&gt;, but non time-series collections must have a&#160;&lt;tt&gt;clusteredIndex&lt;/tt&gt;&#160;to have&#160;&lt;tt&gt;expireAfterSeconds&lt;/tt&gt;. Additionally, what if a change happens to collection options like a new option is created, or an existing option changes how it is implemented in time-series? Would the $out stage need to be changed every time? If there are conflicting collection options how would we decide which to keep and which to remove for the target collection? An alternative solution would be to drop all the collection options and just create a collection from scratch, but that also changes&#160;&lt;tt&gt;$out&lt;/tt&gt; current behavior.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="2292403">SERVER-75039</key>
            <summary>$out should be able to replace a time-series collection with a non time-series collection </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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-query-integration">Backlog - Query Integration</assignee>
                                    <reporter username="gil.alon@mongodb.com">Gil Alon</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Mar 2023 13:47:30 +0000</created>
                <updated>Mon, 1 May 2023 16:02:53 +0000</updated>
                            <resolved>Mon, 1 May 2023 16:02:53 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5391226" author="JIRAUSER1260430" created="Mon, 1 May 2023 16:02:53 +0000"  >&lt;p&gt;Closing this as won&apos;t fix after conversation with Arun. This ticket would change the fundamental behavior of $out. $out always preserves the existing collection options if the target collection exists. This ticket would change those collection options for time-series collections. We decided not to add this special behavior just for time-series collections.&lt;/p&gt;</comment>
                            <comment id="5306752" author="JIRAUSER1260430" created="Tue, 28 Mar 2023 17:29:27 +0000"  >&lt;p&gt;Note: we are reverting &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72687&quot; title=&quot;Support for $out to Time-series collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72687&quot;&gt;&lt;del&gt;SERVER-72687&lt;/del&gt;&lt;/a&gt; soon, since we want to get &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74061&quot; title=&quot;Support $out for time-series on secondaries and sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74061&quot;&gt;&lt;del&gt;SERVER-74061&lt;/del&gt;&lt;/a&gt; in with it and we don&apos;t think we&apos;ll be able to get &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74061&quot; title=&quot;Support $out for time-series on secondaries and sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74061&quot;&gt;&lt;del&gt;SERVER-74061&lt;/del&gt;&lt;/a&gt; in before 7.0, so this ticket should wait until we merge &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72687&quot; title=&quot;Support for $out to Time-series collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72687&quot;&gt;&lt;del&gt;SERVER-72687&lt;/del&gt;&lt;/a&gt; back in. &lt;span class=&quot;error&quot;&gt;&amp;#91;Update&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-74061&quot; title=&quot;Support $out for time-series on secondaries and sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-74061&quot;&gt;&lt;del&gt;SERVER-74061&lt;/del&gt;&lt;/a&gt; is closed, so this ticket is now ready to be worked on.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="2229253">SERVER-72687</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2265731">SERVER-74061</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2258953">SERVER-73823</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25467"><![CDATA[Query Integration]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        40 weeks, 2 days 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-72687'>SERVER-72687</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-74061'>SERVER-74061</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-3253</customfieldvalue>
                        </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>gil.alon@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            40 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-query-integration</customfieldvalue>
            <customfieldvalue>gil.alon@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i20vvj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i1j960:</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_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|i20i0v:</customfieldvalue>

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