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

db.runCommand({startupWarnings:1}) includes spurious line

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.0.0-rc7
    • Affects Version/s: 3.0.0-rc6
    • Component/s: Admin
    • None
    • Fully Compatible
    • Linux

      On 2.8.0-rc5 (and all previous versions of MongoDB), a healthy server looked like this:

      > db.adminCommand({getLog: "startupWarnings" })
      { "totalLinesWritten" : 0, "log" : [ ], "ok" : 1 }
      

      Now, a healthy 3.0.0-rc6 mongod can look like this:

      "startupWarnings": {
              "totalLinesWritten": 1,
              "log": ["2015-01-24T17:58:54.554+0000 I CONTROL  [initandlisten] "],
              "ok": 1
          },
      

      ... and a genuine warning looks like this:

      "startupWarnings": {
              "totalLinesWritten": 4,
              "log": [
                  "2015-01-24T14:47:04.736+0000 I CONTROL  [initandlisten] ",
                  "2015-01-24T14:47:04.736+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.",
                  "2015-01-24T14:47:04.736+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'",
                  "2015-01-24T14:47:04.736+0000 I CONTROL  [initandlisten] "
              ],
              "ok": 1
          },
      

      MMS escalates "there is a startup warning" to the main Hosts page in the UI if totalLinesWritten > 0, which means that this new behavior in 3.0.0-rc5 is falsely triggering this check.

      We can adapt MMS if necessary, but this will leave users of older version of MMS OnPrem seeing spurious warnings in the UI.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            cailin.nelson@mongodb.com Cailin Nelson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: