<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:45:28 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-17749] collMod usePowerOf2Sizes fails on mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-17749</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m trying to set the usePowerOf2Sizes flag to a collection. I tried&lt;br/&gt;
from a mongos:&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.runCommand( &lt;/p&gt;
{collMod : &quot;test&quot; , usePowerOf2Sizes : true }
&lt;p&gt; )&lt;br/&gt;
{&lt;br/&gt;
  &quot;raw&quot; : {&lt;br/&gt;
    &quot;rs_test/db1-test:27017,db2-test:27017&quot; : &lt;/p&gt;
{
      &quot;usePowerOf2Sizes_old&quot; : false,
      &quot;usePowerOf2Sizes_new&quot; : true,
      &quot;ok&quot; : 0,
      &quot;errmsg&quot; : &quot;unknown option to collMod: $queryOptions&quot;
    }
&lt;p&gt;  },&lt;br/&gt;
  &quot;ok&quot; : 0,&lt;br/&gt;
  &quot;errmsg&quot; : &quot;&lt;/p&gt;
{ rs_test/db1-test:27017,db2-test:27017: \&quot;unknown option
to collMod: $queryOptions\&quot; }
&lt;p&gt;&quot;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;On the replicaset master, setting the flag works:&lt;/p&gt;

&lt;p&gt;rs_test:PRIMARY&amp;gt; db.runCommand( &lt;/p&gt;
{collMod : &quot;deviceInfoView&quot; ,
usePowerOf2Sizes : false }
&lt;p&gt; )&lt;/p&gt;
{ &quot;usePowerOf2Sizes_old&quot; : true, &quot;usePowerOf2Sizes_new&quot; : false, &quot;ok&quot; : 1 }

&lt;p&gt;JFYI: This cluster has been upgraded from 2.4.&lt;/p&gt;</description>
                <environment></environment>
        <key id="192170">SERVER-17749</key>
            <summary>collMod usePowerOf2Sizes fails on mongos</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="9">Done</resolution>
                                        <assignee username="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="ole">Ole Langbehn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Mar 2015 15:15:23 +0000</created>
                <updated>Fri, 18 Sep 2015 22:41:24 +0000</updated>
                            <resolved>Fri, 17 Apr 2015 15:27:12 +0000</resolved>
                                    <version>2.6.8</version>
                                    <fixVersion>2.6.10</fixVersion>
                    <fixVersion>3.0.3</fixVersion>
                    <fixVersion>3.1.1</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="891527" author="xgen-internal-githook" created="Fri, 17 Apr 2015 15:28:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17749&quot; title=&quot;collMod usePowerOf2Sizes fails on mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17749&quot;&gt;&lt;del&gt;SERVER-17749&lt;/del&gt;&lt;/a&gt;: ignore fields starting with $ in collMod command, to match behavior of aggregation pipeline command.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit aa51ce621c39c54c2105eebe2f0961f0dc9c2890)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/150d03405122fbb7ffe20a0d99d12199fa3bcb42&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/150d03405122fbb7ffe20a0d99d12199fa3bcb42&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="891526" author="xgen-internal-githook" created="Fri, 17 Apr 2015 15:28:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17749&quot; title=&quot;collMod usePowerOf2Sizes fails on mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17749&quot;&gt;&lt;del&gt;SERVER-17749&lt;/del&gt;&lt;/a&gt;: ignore fields starting with $ in collMod command, to match behavior of aggregation pipeline command.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit aa51ce621c39c54c2105eebe2f0961f0dc9c2890)&lt;br/&gt;
Branch: v3.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/437125df84156433d08ba70821a981dea8b6c36e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/437125df84156433d08ba70821a981dea8b6c36e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="870486" author="xgen-internal-githook" created="Wed, 1 Apr 2015 18:15:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tychoish&apos;, u&apos;name&apos;: u&apos;Sam Kleinman&apos;, u&apos;email&apos;: u&apos;samk@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17749&quot; title=&quot;collMod usePowerOf2Sizes fails on mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-17749&quot;&gt;&lt;del&gt;SERVER-17749&lt;/del&gt;&lt;/a&gt;: ignore fields starting with $ in collMod command, to match behavior of aggregation pipeline command.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/aa51ce621c39c54c2105eebe2f0961f0dc9c2890&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/aa51ce621c39c54c2105eebe2f0961f0dc9c2890&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="868513" author="ramon.fernandez" created="Tue, 31 Mar 2015 00:48:34 +0000"  >&lt;p&gt;Thanks for the additional information &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ole&quot; class=&quot;user-hover&quot; rel=&quot;ole&quot;&gt;ole&lt;/a&gt;. This looks like a bug: the read preference should be ignored when running &lt;tt&gt;collMod&lt;/tt&gt;, but in the case of &lt;tt&gt;usePowerOf2Sizes&lt;/tt&gt; it isn&apos;t. We&apos;re looking into it. &lt;/p&gt;</comment>
                            <comment id="868014" author="ole" created="Mon, 30 Mar 2015 19:40:37 +0000"  >&lt;p&gt;passing --norc helped.&lt;/p&gt;

&lt;p&gt;The culprit was &apos;db.getMongo().setReadPref(&quot;secondary&quot;)&apos;, though I don&apos;t understand why the read preference breaks setting flags.&lt;/p&gt;</comment>
                            <comment id="867987" author="samk" created="Mon, 30 Mar 2015 19:26:18 +0000"  >&lt;p&gt;Sorry for this confusion. To help us reproduce this case, could you provide answers to the following &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Could you check to ensure that all components of the cluster are running the correct version. Including the config servers, mongos instances, and all shards?&lt;/li&gt;
	&lt;li&gt;Can you attempt running this operation while passing the &lt;tt&gt;--norc&lt;/tt&gt; option to &lt;tt&gt;mongo&lt;/tt&gt;?&lt;/li&gt;
	&lt;li&gt;Can you confirm that the collection you&apos;re trying to set &lt;tt&gt;usePowerOf2Sizes&lt;/tt&gt; on exists on all shards?&lt;/li&gt;
	&lt;li&gt;Are there cases where you &lt;b&gt;can&lt;/b&gt; successfully run &lt;tt&gt;collMod&lt;/tt&gt; via a &lt;tt&gt;mongos&lt;/tt&gt; instance?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Regards,&lt;br/&gt;
sam&lt;/p&gt;</comment>
                            <comment id="864966" author="ole" created="Thu, 26 Mar 2015 15:16:30 +0000"  >&lt;p&gt;asked on mongo-user list, no answer up to now:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/-oz8cu3ZX7U&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!topic/mongodb-user/-oz8cu3ZX7U&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="189754">SERVER-17607</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="15183">2.6.10</customfieldvalue>
    <customfieldvalue id="15290">3.0.3</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 30 Mar 2015 19:26:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 43 weeks, 5 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 43 weeks, 5 days ago
                        </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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ole</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl9vb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs7ia7:</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1. connect to mongos&lt;br/&gt;
2. db.runCommand( &lt;/p&gt;
{collMod : &quot;test&quot; , usePowerOf2Sizes : true }
&lt;p&gt; )&lt;/p&gt;</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11856"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlkbb:</customfieldvalue>

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