# How to handle "There are still active requests on this node, delaying graceful shutdown"?

**URL:** <https://community.cratedb.com/t/how-to-handle-there-are-still-active-requests-on-this-node-delaying-graceful-shutdown/955>\
**Category:** CrateDB\
**Created:** [December 17, 2021, 1:41pm UTC](https://community.cratedb.com/t/how-to-handle-there-are-still-active-requests-on-this-node-delaying-graceful-shutdown/955 "2021-12-17T13:41:45Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Emre\_Sevinc](https://sea2.discourse-cdn.com/flex020/user_avatar/community.cratedb.com/emre_sevinc/32/375_2.png) [@Emre\_Sevinc](https://community.cratedb.com/u/Emre_Sevinc)\
**Post date:** [December 23, 2021, 8:43am UTC](https://community.cratedb.com/t/how-to-handle-there-are-still-active-requests-on-this-node-delaying-graceful-shutdown/955/10 "2021-12-23T08:43:04Z")

</div>

To finalize this thread: I’ve stopped and started CrateDB on the first node, waited for it to be a part of cluster and then repeated the whole process, this time with a successful graceful shutdown. Then I upgraded CrateDB Debian packages and repeated the same thing for other nodes, finishing the cluster upgrade process in **about 20 minutes**.

I think the reason this process (graceful shutdown on the first node) was stuck waiting is:

- After issuing the DECOMMISSION command via `crash` on the first node, I waited for about 1 minute and then Ctrl-C exited from `crash` command line utility.
- And the reason I exited (Ctrl-C) is because I thought I could do it, and also I was expecting the decommission process to finish by that time. Apparently, it takes more than a few minutes!
- In the successful case, I have seen that it takes about **7-8 minutes** between the `ALTER CLUSTER DECOMMISSION 'whatever-node-name-... ;` and receiving `ALTER OK, 1 row affected ` message.

During that process, `min_availability` was `PRIMARIES` (I never changed that):

```auto
 select settings['cluster']['graceful_stop']['min_availability'] from sys.cluster limit 100;
 settings['cluster']['graceful_stop']['min_availability']
----------------------------------------------------------
 PRIMARIES
(1 row)

```

And the largest time series table had `'0-1'` as the number of replicas:

```auto
 number_of_replicas = '0-1',

```

---

_[View the full topic](https://community.cratedb.com/t/how-to-handle-there-are-still-active-requests-on-this-node-delaying-graceful-shutdown/955)._
