Cannot set wiredTigerConcurrentWriteTransactions/wiredTigerConcurrentReadTransactions without casting the value

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Storage Execution Team
              Reporter:
              Alex Bevilacqua
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: