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

Provide more detail in "error stopping mongod" test errors

    • Server Development Platform
    • 3

      An example message + stack:

      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.494+0000 | 2020-05-18T21:35:52.398Z I  -        22821   [js] "shell: stopped mongo program on port {port}","attr":{"port":20021}
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 uncaught exception: StopError: MongoDB process stopped with exit code: -9 :
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 StopError: MongoDB process stopped with exit code: -9
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 MongoRunner.StopError@src/mongo/shell/servers.js:924:44
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 MongoRunner.stopMongod@src/mongo/shell/servers.js:1028:15
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 ReplSetTest/this.stop<@src/mongo/shell/replsettest.js:2984:19
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 _nodeParamToConn/<@src/mongo/shell/replsettest.js:226:57
      [js_test:backup_restore_stop_start] 2020-05-18T21:35:52.948+0000 _nodeParamToSingleNode/<@src/mongo/shell/replsettest.js:260:45
      

      While the port is often all that's needed to identify the node in question, things can be tricky because a port is used across restarts. Other information I use to identify process lifetimes that should be included if available:

      • The process id
      • The dbpath being used
      • The binary name (e.g: mongo, mongos, mongobridge, mongod, mongod-4.4)

            Assignee:
            backlog-server-devplatform [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: