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

memcached/ep-engine crashes in flusher or other paths when it receives a shutdown message from ns-server


    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.8.1, 2.0
    • Fix Version/s: 2.0
    • Component/s: couchbase-bucket
    • Security Level: Public
    • Labels:


      this case could occur in many places

      1- when node is waming up and ns-server sneds a shutdown command to delete the bucket during warmup
      2- when node is warming up ( a failed over node ) ns-server sends a shutdown command to delete the bucket
      3- when a node which was rebalanced out but for some reason memcached is still doing sth , ns-server sends a shut down command

      scenario #2 is very very common and in large environments where warm up takes 8 hours or so user will keep retrying the rebalance button and it wont succeed unless user manually kills the memcached process manually by running kill command.

      in general ep-engine needs to abort instead of crashing
      on the other hand during normal shutdown , when ns-server sends a command to ep-engine to shut down . ep-engine should wait until all items are flushed and then shutdown.

      seems like we need to differentiate a command that says shut down gracefully or shut down with force.

      some of the bugs :


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


        farshid Farshid Ghods (Inactive) created issue -
        chiyoung Chiyoung Seo made changes -
        Field Original Value New Value
        Assignee Chiyoung Seo [ chiyoung ] Jin Lim [ jin ]
        farshid Farshid Ghods (Inactive) made changes -
        Fix Version/s 2.0 [ 10114 ]
        Fix Version/s 2.0.1 [ 10399 ]
        farshid Farshid Ghods (Inactive) made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]


          • Assignee:
            jin Jin Lim (Inactive)
            farshid Farshid Ghods (Inactive)
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:

              Gerrit Reviews

              There are no open Gerrit changes