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

collMod doesn't work when run through a mongos on an authenticated cluster

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0
    • Affects Version/s: 2.2.1
    • Component/s: None
    • None
    • Environment:
      RHEL 5
    • ALL

      Attempting to switch userPowerOf2Sizes on through a mongos on a sharded collection doesn't seem to work:

      mongos> use mongoose
      mongos> db.runCommand({"collMod":"centaur", "usePowerOf2Sizes":true})
      {
              "raw" : {
                      "rs0/cn14-ib:27118,cn53-ib:27118,cn17-ib:27118" : {
                              "usePowerOf2Sizes_old" : true,
                              "errmsg" : "unknown command: $auth",
                              "ok" : 0
                      },
                      "rs1/cn54-ib:27118,cn55-ib:27118" : {
                              "usePowerOf2Sizes_old" : true,
                              "errmsg" : "unknown command: $auth",
                              "ok" : 0
                      }
              },
              "ok" : 0,
              "errmsg" : "{ rs0/cn14-ib:27118,cn53-ib:27118,cn17-ib:27118: \"unknown command: $auth\", rs1/cn54-ib:27118,cn55-ib:27118: \"unknown command: $auth\" }"
      }
      

      It's not clear to me if the problem is the fact that the cluster is authenticated, or that it's sharded...

      Note the same command works fine against a plain old un-sharded, un-auth'd mongod primary:

      reggie:PRIMARY> db.runCommand({"collMod":"asdf", "usePowerOf2Sizes":true})
      { "usePowerOf2Sizes_old" : false, "ok" : 1 }
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            jblackburn James Blackburn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: