Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17749

collMod usePowerOf2Sizes fails on mongos

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.6.8
    • Fix Version/s: 2.6.10, 3.0.3, 3.1.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Steps To Reproduce:
      Hide

      1. connect to mongos
      2. db.runCommand(

      {collMod : "test" , usePowerOf2Sizes : true }

      )

      Show
      1. connect to mongos 2. db.runCommand( {collMod : "test" , usePowerOf2Sizes : true } )

      Description

      I'm trying to set the usePowerOf2Sizes flag to a collection. I tried
      from a mongos:

      mongos> db.runCommand(

      {collMod : "test" , usePowerOf2Sizes : true }

      )
      {
      "raw" : {
      "rs_test/db1-test:27017,db2-test:27017" :

      { "usePowerOf2Sizes_old" : false, "usePowerOf2Sizes_new" : true, "ok" : 0, "errmsg" : "unknown option to collMod: $queryOptions" }

      },
      "ok" : 0,
      "errmsg" : "

      { rs_test/db1-test:27017,db2-test:27017: \"unknown option to collMod: $queryOptions\" }

      "
      }

      On the replicaset master, setting the flag works:

      rs_test:PRIMARY> db.runCommand(

      {collMod : "deviceInfoView" , usePowerOf2Sizes : false }

      )

      { "usePowerOf2Sizes_old" : true, "usePowerOf2Sizes_new" : false, "ok" : 1 }

      JFYI: This cluster has been upgraded from 2.4.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: