# Aerospike hangs when s-index deletes

**URL:** <https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387>\
**Category:** Deletion\
**Created:** [September 10, 2014, 1:51pm UTC](https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387 "2014-09-10T13:51:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![garicknk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/garicknk/32/35_2.png) [@garicknk](https://discuss.aerospike.com/u/garicknk)\
**Post date:** [September 10, 2014, 1:51pm UTC](https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387/1 "2014-09-10T13:51:14Z")

</div>

Hi,

We have

- 4 nodes aerospike cluster with replication factor of 2
- a set with 670 million records within the cluster
- 7 bins (4 strings, 3 integers) in every record of the set
- and a string s-index on one of the string bins (the bin’s data is always a 36 symbols string of one of 350 million unique values distributed uniformaly between those 670 millions).

After dropping the s-index the entire cluster stopped responding, clients couldn’t connect to the aerospike nodes, asmonitor kept printing timeout errors.

It lasted for about 10 minutes. During that period we could see the s-index usage of ram was slowly going down until reached 0.

After that the cluster went back to normal, the state of the cluster remained unchanged, migrations didn’t start.

Why is this happening?

---

<div class="post-metadata">

**Author:** ![lucien](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/lucien/32/2065_2.png) [@lucien](https://discuss.aerospike.com/u/lucien)\
**Post date:** [September 10, 2014, 5:51pm UTC](https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387/2 "2014-09-10T17:51:13Z")

</div>

Which versions of Aerospike are you running. Can you post your config and may be any critical messages from your logs during the issue.

–Lucien

---

<div class="post-metadata">

**Author:** ![garicknk](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/garicknk/32/35_2.png) [@garicknk](https://discuss.aerospike.com/u/garicknk)\
**Post date:** [September 11, 2014, 7:03am UTC](https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387/3 "2014-09-11T07:03:35Z")

</div>

Configuration is the same as I posted before in [thread](http://discuss.aerospike.com/t/cluster-synchronization-re-write-keys/320/3)

Aerospike version now is 3.3.12

no anomalies in logs

---

<div class="post-metadata">

**Author:** ![lucien](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/lucien/32/2065_2.png) [@lucien](https://discuss.aerospike.com/u/lucien)\
**Post date:** [September 11, 2014, 9:53pm UTC](https://discuss.aerospike.com/t/aerospike-hangs-when-s-index-deletes/387/4 "2014-09-11T21:53:36Z")

</div>

Our engineers have been able to identify the issue. We are doing a lot of frees inside the sindex global lock, which can take a while to finish. During this time writes will timeout, info call like sindex-list (which takes global sindex lock) will timeout too. We’re working on addressing this in the next release.

Thanks again for bringing this to our attention.

best, Lucien
