I am just starting to look into cockroachDB. I have set up an insecure three node cluster using docker. (replication factor=3)
Furthermore I have a java test client that repeats the following steps a defined number of times:
get a connection -> execute a select -> close the connection
The following situations occured:
a. As expected: When two or three nodes are online it works without problems.
b. As expected: When all nodes are stopped I get a error message when trying to connect.
c. Now I would expect to get an error when only one node is available as well because the cluster is unavailable. But instead DriverManager.getConnection(DB_URL, props) hangs indefinetely.
Is there any way to configure cockroachDB to return an sqlerror or something similar?