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

Shutdown / rs.stepDown() of master creates random slave crashes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.6.1
    • Affects Version/s: 1.5.6
    • Component/s: Replication
    • None
    • Environment:
      ubuntu 10.04 64bit mongodb 1.5.6
    • ALL

      killing mongod on the master either by "command line kill" or "mongo rs.stepDown()" randomly crashes slaves. not all the time, but a lot of times.

      slave log:

      [conn561] Sun Jul 25 00:38:42 replSet TEMP RECEIVED ELECT MSG

      { replSetElect: 1, set: "<replset>", who: "<master host>", whoid: 2, cfgver: 5, round: ObjectId('4c4b879276b7cf142d74a41f') }

      [conn561] Sun Jul 25 00:38:42 replSet info voting yea for 2
      Sun Jul 25 00:38:43 Got signal: 11 (Segmentation fault).

      Sun Jul 25 00:38:43 Backtrace:
      0x7e5759 0x7f470d348af0 0x5392c0 0x66ff69 0x538df3 0x51eacb 0x7fa960 0x7f470de4c9ca 0x7f470d3fb6fd
      /export/mongodb/bin/mongod(_ZN5mongo10abruptQuitEi+0x399) [0x7e5759]
      /lib/libc.so.6(+0x33af0) [0x7f470d348af0]
      /export/mongodb/bin/mongod(_ZN5mongo4task6Server4sendEN5boost8functionIFvvEEE+0x50) [0x5392c0]
      /export/mongodb/bin/mongod(_ZN5mongo21ReplSetHealthPollTask6doWorkEv+0x1159) [0x66ff69]
      /export/mongodb/bin/mongod(_ZN5mongo4task4Task3runEv+0x33) [0x538df3]
      /export/mongodb/bin/mongod(_ZN5mongo13BackgroundJob3thrEv+0x8b) [0x51eacb]
      /export/mongodb/bin/mongod(thread_proxy+0x80) [0x7fa960]
      /lib/libpthread.so.0(+0x69ca) [0x7f470de4c9ca]
      /lib/libc.so.6(clone+0x6d) [0x7f470d3fb6fd]

      Sun Jul 25 00:38:43 dbexit:

      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 shutdown: going to close listening sockets...
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 going to close listening socket: 13
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 going to close listening socket: 14
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 going to close listening socket: 15
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 going to close listening socket: 16
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 shutdown: going to flush oplog...
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 shutdown: going to close sockets...
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 shutdown: waiting for fs preallocator...
      [ReplSetHealthPollTask] Sun Jul 25 00:38:43 shutdown: closing all files...
      [initandlisten] Sun Jul 25 00:38:43 now exiting
      Sun Jul 25 00:38:43 dbexit: ; exiting immediately

      Sun Jul 25 00:38:43 Got signal: 6 (Aborted).

            Assignee:
            dwight@mongodb.com Dwight Merriman
            Reporter:
            aliemen Alex
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: