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

collMod usePowerOf2Sizes fails on mongos

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.6.10, 3.0.3, 3.1.1
    • Affects Version/s: 2.6.8
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Hide

      1. connect to mongos
      2. db.runCommand(

      {collMod : "test" , usePowerOf2Sizes : true }

      )

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

      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.

            Assignee:
            sam.kleinman Sam Kleinman (Inactive)
            Reporter:
            ole Ole Langbehn
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: