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

mongod --version returns with extraneous log line on M1 laptops

    XMLWordPrintable

Details

    • Fully Compatible
    • v5.0, v4.4
    • Service Arch 2021-09-06
    • 2

    Description

      While testing out a new M1 laptop for Cloud, I noticed that the output of mongod --version is different for MDB enterprise 4.4 binaries. Automation notices because we parse that output to determine the version details for a mongo binary.

      On M1:

      louisa.berger@M-C02F764NQ05N go_planner % /tmp/mms-automation/test/versions/mongodb-macos-x86_64-enterprise-4.4.5/bin/mongod --version
      {"t":{"$date":"2021-04-16T15:31:12.455Z"},"s":"I",  "c":"CONTROL",  "id":23351,   "ctx":"main","msg":"{sysctlName} unavailable","attr":{"sysctlName":"machdep.cpu.extfeatures"}}
      db version v4.4.5
      Build Info: {
          "version": "4.4.5",
          "gitVersion": "ff5cb77101b052fa02da43b8538093486cf9b3f7",
          "modules": [
              "enterprise"
          ],
          "allocator": "system",
          "environment": {
              "distarch": "x86_64",
              "target_arch": "x86_64"
          }
      }
      

      Not on M1:

      (default) louisamac:versions louisaberger$ mongodb-macos-x86_64-enterprise-4.4.5/bin/mongod --version
      db version v4.4.5
      Build Info: {
          "version": "4.4.5",
          "gitVersion": "ff5cb77101b052fa02da43b8538093486cf9b3f7",
          "modules": [
              "enterprise"
          ],
          "allocator": "system",
          "environment": {
              "distarch": "x86_64",
              "target_arch": "x86_64"
          }
      }
      

      Note – this is just enterprise, not community.

      acm suggested I file a ticket here, and that we could remove that log line.

      Attachments

        Activity

          People

            matthew.saltz@mongodb.com Matthew Saltz
            louisa.berger@mongodb.com Louisa Berger
            Votes:
            1 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: