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

mongoebench-compatible JSON config files attempt to read from views without using "find" command

    • Fully Compatible
    • ALL
    • v4.0
    • TIG 2018-09-10, TIG 2018-09-24

      The benchrun.py script defaults to --readCmd=false as seen in the mongoebench-compatible JSON config file with "readCmd" : false.

      benchrun_embedded/testcases/queries_identity_view_int_id_find_one.json
      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      ...
      "writeConcern" : { "j" : false },
      "writeCmd" : true,
      "readCmd" : false } ] }
      

      This causes DBClientConnection::findOne() to be called rather than DBClientConnection::runCommand() being called via runQueryWithReadCommands(). Legacy OP_QUERY reads do not support views - only the "find" command does. Changing the mongoebench-compatible JSON config files to be generated with --readCmd=true would address this issue.

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: