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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.4.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      RHEL 5
    • Operating System:
      ALL

      Description

      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 }

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: