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

profile command returns that it can only be run from admin database

    XMLWordPrintableJSON

Details

    • Sharding NYC
    • ALL
    • Hide

      ./scratch/setprof.js:
      ```
      (function() {
      assert.commandWorked(db.test.insert({}));
      assert.commandWorked(db.setProfilingLevel(2));
      })();
      ```

      buildscripts/resmoke.py --suites=sharding_jscore_op_query_passthrough ./scratch/setprof.js

      Show
      ./scratch/setprof.js: ``` (function() { assert.commandWorked(db.test.insert({})); assert.commandWorked(db.setProfilingLevel(2)); })(); ``` buildscripts/resmoke.py --suites=sharding_jscore_op_query_passthrough ./scratch/setprof.js

    Description

      When running in sharding_jscore_op_query_passthrough, a jstest that calls setProfilingLevel is returned an errmsg: " profile may only be run against the admin database.".

      Error because profile does not need to be run on admin database.

      Attachments

        Activity

          People

            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            ben.judd Ben Judd
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: