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

Cannot set wiredTigerConcurrentWriteTransactions/wiredTigerConcurrentReadTransactions without casting the value

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • Storage Execution
    • ALL
    • Execution Team 2022-06-13

      The wiredTigerConcurrentWriteTransactions and wiredTigerConcurrentReadTransactions server parameters can't be set via the db.adminCommand() helper directly.

      For example:

      MongoDB shell version v5.0.2
      MongoDB server version: 5.0.2
      ================
      MongoDB Enterprise > db.adminCommand({ setParameter: 1, wiredTigerConcurrentWriteTransactions: 256 })
      {
              "ok" : 0,
              "errmsg" : "Did not consume whole string.",
              "code" : 9,
              "codeName" : "FailedToParse"
      }
      

      Casting the value to either NumberInt or NumberLong addresses this:

      MongoDB Enterprise > db.adminCommand({ setParameter: 1, wiredTigerConcurrentWriteTransactions: NumberInt(256) })
      { "was" : 128, "ok" : 1 }
      MongoDB Enterprise > db.adminCommand({ setParameter: 1, wiredTigerConcurrentWriteTransactions: NumberLong(256) })
      { "was" : 256, "ok" : 1 }
      

      Note this does not reproduce in mongosh:

      Using MongoDB:          5.0.2
      Using Mongosh:          0.15.6
      ------
      Enterprise test> db.adminCommand({ setParameter: 1, wiredTigerConcurrentWriteTransactions: 256 })
      { was: 128, ok: 1 }
      

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            alex.bevilacqua@mongodb.com Alex Bevilacqua
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: