Reputation: 624
I am getting Cassandra task timeout error while executing
CREATE TABLE IF NOT EXISTS subscriber.packagestats (packageid text PRIMARY KEY, numaccounts counter);
Cassandra.ServerErrorException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NullPointerException at Cassandra.Tasks.TaskHelper.WaitToComplete(Task task, Int32 timeout) at Cassandra.Session.Execute(IStatement statement)
Query Consistency level is set to ALL
Used Cassandra c# driver version is 3.0.5
It was working fine until now but suddenly it starts throwing the exception , I also tried to increase the timeout upto 1 minute but still the problem persists.
Any help would be appreciated ?
Upvotes: 1
Views: 339
Reputation: 624
I found that schema update/create was triggering race condition issues in the Cassandra version that we use (3.0.5). Schema changes in Cassandra are every sensitive and error prone. Strong consistency was only added in version 4 issues.apache.org/jira/browse/CASSANDRA-10699 Look here: stackoverflow.com/a/41269542
So I upgraded to version 4 and it solved the problem.
Upvotes: 1