<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:14:17 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-69750] For certain index options, $listCatalog output could have inconsistent data type as $listIndexes</title>
                <link>https://jira.mongodb.org/browse/SERVER-69750</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As an example, if user creates an index and specifies &lt;tt&gt;expireAfterSeconds&lt;/tt&gt; option to be a floating point, like 101.23. The creation would succeed and $listIndexes outputs &lt;tt&gt;expireAfterSeconds&lt;/tt&gt; as an integer 101, since this field is declared to be &lt;a href=&quot;https://github.com/10gen/mongo/blob/v6.0/src/mongo/db/list_indexes.idl#L87&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;safeInt&lt;/a&gt; in IDL. However $listCatalog would still output &lt;tt&gt;expireAfterSeconds&lt;/tt&gt; as floating point 101.23. This behavior causes issues and confusions to downstream consumers like C2C because the expectation is $listCatalog output is consistent with $listIndexes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2137947">SERVER-69750</key>
            <summary>For certain index options, $listCatalog output could have inconsistent data type as $listIndexes</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="13202">Works as Designed</resolution>
                                        <assignee username="dan.larkin-york@mongodb.com">Dan Larkin-York</assignee>
                                    <reporter username="wenbin.zhu@mongodb.com">Wenbin Zhu</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Sep 2022 16:28:18 +0000</created>
                <updated>Fri, 27 Oct 2023 13:51:53 +0000</updated>
                            <resolved>Wed, 14 Dec 2022 21:19:24 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="5055837" author="JIRAUSER1258790" created="Wed, 14 Dec 2022 21:19:12 +0000"  >&lt;p&gt;Summary of my discussion with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dan.larkin-york%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;dan.larkin-york@mongodb.com&quot;&gt;dan.larkin-york@mongodb.com&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The real problem is in $listIndex, it allows user to specify &lt;tt&gt;expireAfterSeconds&lt;/tt&gt; as floating point, but outputs an integer. Unlike $listIndexes, $listCatalog outputs index specs exactly same as the on-disk catalog.&lt;/li&gt;
	&lt;li&gt;Ideally mongosync should create index on destination using source&apos;s on-disk index spec, because that guarantees source and destination can have the same catalog on disk, so that means the current $listCatalog implementation is preferred.&lt;/li&gt;
	&lt;li&gt;However while the current $listCatalog implementation is preferred, it causes confusion to mongosync developers because there is no documentation on $listCatalog output format, so we have to consult $listIndex documentation to know what types are expected in the output, which is exactly same as $listCatalog.&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72129&quot; title=&quot;Document $listCatalog output format for internal use&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72129&quot;&gt;&lt;del&gt;SERVER-72129&lt;/del&gt;&lt;/a&gt; is created to add an internal documentation for $listCatalog to address the confusion for mongosync developers.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="4959695" author="connie.chen" created="Mon, 7 Nov 2022 16:13:30 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dan.larkin-york%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;dan.larkin-york@mongodb.com&quot;&gt;dan.larkin-york@mongodb.com&lt;/a&gt; to follow up with &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wenbin.zhu%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;wenbin.zhu@mongodb.com&quot;&gt;wenbin.zhu@mongodb.com&lt;/a&gt; on the use cases for mongosync to use $listCatalog and $listIndexes&lt;/p&gt;</comment>
                            <comment id="4876785" author="JIRAUSER1258790" created="Tue, 4 Oct 2022 15:30:03 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=connie.chen%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;connie.chen@mongodb.com&quot;&gt;connie.chen@mongodb.com&lt;/a&gt;, from mongosync&apos;s perspective, we&apos;re more concerned about the consistency between $listCatalog and $listIndexes output rather than precision. Any conversions done in mongosync and cannot guarantee always being consistent with server&apos;s $listIndexes output and is not future proof, which has risks for customers.&lt;/p&gt;</comment>
                            <comment id="4876384" author="connie.chen" created="Tue, 4 Oct 2022 14:16:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wenbin.zhu%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;wenbin.zhu@mongodb.com&quot;&gt;wenbin.zhu@mongodb.com&lt;/a&gt; is the crash happening in mongosync and would the replicator be able to workaround this issue?&lt;/p&gt;

&lt;p&gt;We would prefer to keep $listCatalog as a floating point so that we can keep the precision.&lt;/p&gt;</comment>
                            <comment id="4842336" author="JIRAUSER1258790" created="Tue, 20 Sep 2022 16:13:40 +0000"  >&lt;p&gt;We haven&apos;t heard customers complaining on this other than our tests. So it&apos;s not too urgent, but we do hope this can be fixed soon in order to avoid customer frustrations since C2C would crash when experiencing this issue. Also according to offline discussion with Benety, it seems possible that other index options (in addition to expireAfterSeconds) might have similar issues. If this is true, fixing it sooner would result in less surprises. Thanks!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2247046">SERVER-73442</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2139362">SERVER-69783</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2211323">SERVER-72129</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1947754">SERVER-62006</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1998470">SERVER-64404</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>5.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="24444"><![CDATA[v6.1]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 20 Sep 2022 15:50:49 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 8 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>34.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>connie.chen@mongodb.com</customfieldvalue>
            <customfieldvalue>dan.larkin-york@mongodb.com</customfieldvalue>
            <customfieldvalue>wenbin.zhu@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1ag9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0nzxn:x0i</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="6672">Execution Team 2022-12-26</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|i1a2fb:</customfieldvalue>

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