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

Crash with "checkpoint server error" if early shutdown is invoked due to socket error at startup

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major - P3 Major - P3
    • None
    • None
    • WiredTiger
    • None
    • Storage Execution
    • ALL
    • Hide

      Not a reliable repro, but trying to start mongod using a port, which is in use should do the trick.

      Show
      Not a reliable repro, but trying to start mongod using a port, which is in use should do the trick.

    Description

      This is specific to MongoD with WiredTiger storage engine and only happens during early shutdown.

      If mongod invokes shutdown very early in the startup sequence (say, because it cannot bind to the listening socket, because it's in use), this may catch the WiredTiger engine still initializing and cause it to crash. The call stack below shows the location of the crash and I am also attaching the complete logs.

      mongo::printStackTrace(std::ostream&) at /tmp/TestRunDirectory/mongo/src/mongo/util/stacktrace_posix.cpp:171
      mongo::(anonymous namespace)::printSignalAndBacktrace(int) at /tmp/TestRunDirectory/mongo/src/mongo/util/signal_handlers_synchronous.cpp:179
       (inlined by) mongo::(anonymous namespace)::abruptQuit(int) at /tmp/TestRunDirectory/mongo/src/mongo/util/signal_handlers_synchronous.cpp:235
      ?? ??:0
      ?? ??:0
      ?? ??:0
      mongo::fassertFailed(int) at /tmp/TestRunDirectory/mongo/src/mongo/util/assert_util.cpp:172
      mongo::(anonymous namespace)::mdb_handle_error(__wt_event_handler*, __wt_session*, int, char const*) at /tmp/TestRunDirectory/mongo/src/mongo/util/assert_util.h:214
      __wt_eventv at /tmp/TestRunDirectory/mongo/src/third_party/wiredtiger/src/support/err.c:286
      __wt_err at /tmp/TestRunDirectory/mongo/src/third_party/wiredtiger/src/support/err.c:311
      __wt_panic at /tmp/TestRunDirectory/mongo/src/third_party/wiredtiger/src/support/err.c:494
      __ckpt_server at /tmp/TestRunDirectory/mongo/src/third_party/wiredtiger/src/conn/conn_ckpt.c:124
      ?? ??:0
      ?? ??:0
      

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: