title: Cassandra timeout
body: <p>Here is my Cassndra table </p>
  
  <pre><code>CREATE TABLE ipaddresss (
      ipAddress text,
      time timestamp,
      clientId inet,
      ..
      ..
      ..
      PRIMARY KEY (ipAddress, time, clientId)
  ) WITH CLUSTERING ORDER BY (time DESC, clientId ASC)
  </code></pre>
  
  <p>And I have 6 node Cassandra cluster</p>
  
  <p>And When I am trying to get the below READ query using Java Driver, </p>
  
  <pre><code>select * from ipaddresss where ipAddress = '12.45.67.89' AND time &gt; '2016-11-21' 
  </code></pre>
  
  <p>I am very frequently getting  com.datastax.driver.core.exceptions.ReadTimeoutException: Cassandra timeout during read query at consistency ONE (1 responses were required but only 0 replica responded). I get the answer most of the times, but still have lot of timeout coming even system is not under load. </p>
  
  <p>The Resultset has max 1000 rows, so setting Fetchsize didnt helped</p>