We have a worker which keeps writing to Cassandra whenever it receives a request to do so. The situation is really weird as we are doing inserts in loop and while many of the inserts succeed but few fails with no keyspace has been specified. There is nothing suspicious in logs.
This is how we are making connection
$dsn = "cassandra:host=somehost;port:someport,host=somehost2;port:someport2";
$cassandra = new PDO($dsn, $username, $password, array(PDO::ATTR_PERSISTENT));
For keyspace we execute a query
$cassandra->exec("USE keyspace;");
We now assign $cassandra to a static class variable which is used for the inserts. Additionally, we have not specified timeout and the worker never dies as it is added in supervisor. We also have other keyspaces.
So I have two question:
Why the driver doesn't throw exception in this case as it is a critical error?
We have a worker which keeps writing to Cassandra whenever it receives a request to do so. The situation is really weird as we are doing inserts in loop and while many of the inserts succeed but few fails with
no keyspace has been specified
. There is nothing suspicious in logs.This is how we are making connection
For keyspace we execute a query
$cassandra->exec("USE keyspace;");
We now assign
$cassandra
to a static class variable which is used for the inserts. Additionally, we have not specified timeout and the worker never dies as it is added in supervisor. We also have other keyspaces.So I have two question: