Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-32711

bin/couchbase-server -k does not return if memcached.bin is wedged

    XMLWordPrintable

Details

    Description

      Per our conversation with Ram Dhakne yesterday, we'd like to request an improvement that guarantees couchbase-server -k will return and that all couchbase processes will be stopped when it does.

      To reproduce, send SIGSTOP to memcached.bin to emulate a wedged state and run couchbase-server -k; it will hang indefinitely.

      [thendric@thendric-ld1 bin]$ pgrep memcached.bin
      69978
      [thendric@thendric-ld1 bin]$ kill -SIGSTOP 69978
      [thendric@thendric-ld1 bin]$ time ./couchbase-server -k
      ^C
      BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
             (v)ersion (k)ill (D)b-tables (d)istribution
      a
       
      real	2m32.747s
      user	0m0.206s
      sys	0m0.075s
       

      Desired behavior: couchbase-server -k returns after some predetermined (or specifiable via CLI args) timeout, having sent SIGKILL when required to force couchbase processes offline.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dfinlay Dave Finlay
            thendricks Todd Hendricks
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty