I have been trying to run a query like this:
SELECT COUNT(*) FROM sensors WHERE sensor_id = 1 and date = '2014-11';
on a column family. The WHERE clause filters down to a partition key with around 2 million columns. I expect to get a count result of approx. 2 million, but instead I get this error:
errors={}, last_host=[THE_IP_OF_MY_SERVER]
if I run the query to get the columns it returns the data just fine, but it cannot return the count. I understand the performance issues such count query might have (for example the ones discussed here) but I still would like to get some result for this query for my tests.
So my question is:
- Is this a timeout error? if yes how I can increase the timeout period?
- If not, why I get this error? is there a way to get more details on this? I checked the system.log on each node in my cluster and none had anything printed during the query.
I am using Cassandra 2.1 with cqlsh 5.0.1 and spec 3.2 on a cluster of two nodes both running Ubuntu 14.04.
Thanks