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

Values passed by --setParameter not applied

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • ALL
    • Execution Team 2023-03-20, Execution Team 2023-05-01

      There is at least one instance where --setParameter is not working as expected.

      ./build/install/bin/mongod --setParameter journalCommitInterval=200

      Results in the journal flusher running every 100ms (default). By contrast

      ./build/install/bin/mongod --journalCommitInterval=200 

      or using a config file works as expected.

      Apparently the setParameter value is overwritten by the default value of the parameter in
      https://github.com/10gen/mongo/blob/1eb33d31a32bb7d1a1a18e07c78239b90a9dd5d3/src/mongo/db/mongod_options.cpp#L433

            Assignee:
            yujin.kang@mongodb.com Yujin Kang Park
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: