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

Add support for session options to the concurrency framework

    • Fully Compatible
    • Sharding 2017-09-11

      The concurrency framework uses ScopedThread in worker_thread.js to run a single copy of an FSM workload against the MongoDB deployment. Each FSM worker thread has its own connection to the cluster. We should configure the connections that the FSM worker threads use to start a new session with specific options.

      Note: While the changes should be tested locally and in an Evergreen patch build with something a patch similar to the following, the actual work to add new resmoke.py YAML suites and Evergreen tasks for running under this configuration will happen under a follow-up SERVER ticket.

      Unable to find source-code formatter for language: diff. 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
      diff --git a/jstests/concurrency/fsm_all_sharded_replication.js b/jstests/concurrency/fsm_all_sharded_replication.js
      index 66de8c45ff..7d272412ea 100644
      --- a/jstests/concurrency/fsm_all_sharded_replication.js
      +++ b/jstests/concurrency/fsm_all_sharded_replication.js
      @@ -99,4 +99,5 @@ var blacklist = [
       runWorkloadsSerially(ls(dir).filter(function(file) {
           return !Array.contains(blacklist, file);
       }),
      -                     {sharded: {enabled: true}, replication: {enabled: true}});
      +                     {sharded: {enabled: true}, replication: {enabled: true}},
      +                     {sessionOptions: {}});
      

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: