# Singlestore CIAB error - Leaf not keeps disconnecting from cluster Error: 2004-HY000

**URL:** <https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619>\
**Category:** Help\
**Created:** [April 10, 2024, 8:36am UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619 "2024-04-10T08:36:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashriram](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@ashriram](https://www.singlestore.com/forum/u/ashriram)\
**Post date:** [April 10, 2024, 8:36am UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619/1 "2024-04-10T08:36:22Z")

</div>

I have a memsql ciab cluster I use for local development.  
I’ve used the latest instructions to spin up this cluster from github page

```auto
docker run -i --init \
    --name memsql-ciab \
    -e SINGLESTORE_LICENSE=$MEMSQL_LICENSE_KEY \
    -e ROOT_PASSWORD=singlestore_doesnt_work \
    -p 3306:3306 -p 8080:8080 \
    --platform linux/amd64 \
    ghcr.io/singlestore-labs/singlestoredb-dev:latest

```

The cluster is healthy when there are no queries running.

The moment I run a query, I start getting these errors.

```auto

uncategorized SQLException for SQL [SELECT col1, col2, col3, DOT_PRODUCT(vector, JSON_ARRAY_PACK(?)) AS score from table where vector IS NOT NULL and vector !='' order by score desc limit ?]; SQL state [HY000]; error code [1777]; (conn=659) Partition local_db:0 has no master instance. This is likely because the node or nodes that hold a copy of the partition are down. Check for offline leaf nodes by running SHOW LEAVES and bring them back online to restore access to the partition; nested exception is java.sql.SQLException: (conn=659) Partition local_db:0 has no master instance. This is likely because the node or nodes that hold a copy of the partition are down. Check for offline leaf nodes by running SHOW LEAVES and bring them back online to restore access to the partition

```

The query fails with an error, the node suddenly disconnects.  
However within seconds of running that query, the node is able to re-attach and the cluster becomes healthy again.

Happens every time I try to run this query

Not sure why this doesn’t work and how to debug this.

Details of my setup  
M1 Mac  
jdk 11  
singlestore-jdbc-client v1.2.2

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [April 10, 2024, 5:34pm UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619/2 "2024-04-10T17:34:31Z")

</div>

Can you give a full repro, including

Full details of how you are running on M1 including the instructions on our web site that you followed to set it up, if any.

CREATE TABLE  
INSERT a little data (if needed)  
the SELECT query that causes the crash

It might be a bug related to the M1 Intel emulation environment (I’m just speculating). So as a workaround, consider using a free instance on our cloud.

---

<div class="post-metadata">

**Author:** ![ashriram](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@ashriram](https://www.singlestore.com/forum/u/ashriram)\
**Post date:** [April 16, 2024, 2:04pm UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619/3 "2024-04-16T14:04:29Z")

</div>

I shared all the setup steps in the previous post, As I mentioned earlier, I’ve followed all the steps on your github page for singlestore-ciab docker image setup on m1 mac

Basic select and insert commands seem to be working fine.  
it feels like the problem is limited to vector search queries (semantic search). You can try to repro using the singlestore blogpost about this topic. I can’t share the data i’ve used and neither can I run this test on the cloud due to infosec policies and data privacy concerns.

Unfortunately redis does much better for vector search, and the decision to use singlestore for this use case was made above my pay grade 😕

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [April 25, 2024, 5:47pm UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619/4 "2024-04-25T17:47:17Z")

</div>

Great news! SingleStore 8.5.17, which just came out, fixes the known issues with vector search and dot\_product for M1/M2/M3 Macs.

---

<div class="post-metadata">

**Author:** ![ashriram](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/a/919ad9/32.png) [@ashriram](https://www.singlestore.com/forum/u/ashriram)\
**Post date:** [July 13, 2024, 10:22pm UTC](https://www.singlestore.com/forum/t/singlestore-ciab-error-leaf-not-keeps-disconnecting-from-cluster-error-2004-hy000/7619/5 "2024-07-13T22:22:11Z")

</div>

Closing the loop on this.  
v8.5.17 and the latest singlestore ciab did indeed fix my issues

thanks for your help
