I have two C* 2.0.2 nodes in one DC (with a default configuration in cassandra.yaml) and a keyspace with RF=2. Two clients are connected to this DC with a Datastax Java Driver 1.0.3. Clients read and write data from/to C* with CL=ONE without any errors. But when I shut one node down both clients get a huge amount of exceptions:
com.datastax.driver.core.exceptions.NoHostAvailableException:
All host(s) tried for query failed (no host was tried)
After that bunch of exceptions clients continue to work successfully with another node that still remains alive. What should I do to receive not any NoHostAvailableException because there is at least one alive node at a time and CL=ONE is used?
UPDATE: When I shut one of two nodes I sometimes see the following exception in my app log:
[Reconnection-1] [ERROR] [Control connection] Cannot connect to
any host, scheduling retry
Why both nodes are unavailable if I shut only one down? The second one is still alive at this moment and I can connect to it with cqlsh.