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

numactl in debian init script seems to be problematic

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.1.1, 2.2.5, 2.4.5, 2.5.1
    • Fix Version/s: 2.4.7, 2.5.2
    • Component/s: Packaging
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      Linux

      Description

      Issue Status as of December 16th, 2013

      ISSUE SUMMARY
      Mongod fails to start via init script in Debian if numactl is also installed.

      USER IMPACT
      If numactl is installed on a Debian system along with mongod, the init script will fail to start mongod. This issue is present in versions of MongoDB between v2.2.0 and v2.4.6, inclusive.

      SOLUTION
      Fix command line construction logic in init script.

      WORKAROUNDS
      Option 1) Uninstall numactl.
      Option 2) Manually set the $NUMACTL variable to the empty string ("") in the mongod init script.

      PATCHES
      Production release v2.4.7 contains the fix for this issue, and production release v2.6.0 will contain the fix as well.

      Original Description

      It looks like the wrapper function for numactl here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L67-74 doesn't work with the start-stop-daemon here: https://github.com/mongodb/mongo/blob/master/debian/init.d#L129-135

      One solution could be to test for the existence of numa, and pass the full command to --exec.

        Attachments

        1. init.d.patch
          0.9 kB
        2. mongodb.debian.init
          7 kB

          Issue Links

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: