<div dir="ltr"><div>Solved - turned out to be an issue on the Cassandra side.</div><div><br></div>For the benefit of the list, in case anyone is Googling and has the same problem...<div><br></div><div>I searched to logs and found some failing assertions in /var/log/cassandra/system.log on some of the nodes in the cluster. Turns out this bug was the issue: <a href="https://issues.apache.org/jira/browse/CASSANDRA-4687">https://issues.apache.org/jira/browse/CASSANDRA-4687</a></div>
<div><br></div><div>I&#39;ve followed the workaround of disabling the key cache to workaround the issue until there&#39;s a fix. For anyone following that workaround - you&#39;ll need to update your schema to disable the key cache to start with, then run nodetool invalidatekeycache to make sure anything current cached on each node is evicted before the changes take effect. Also, if your app is still running and has pooled connections that have received TimedOutExceptions previously, you&#39;ll need to reload it as those connections will be hanging around in a bad state.</div>
<div><br></div><div><br></div><div>James.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 September 2013 11:15, James Aley <span dir="ltr">&lt;<a href="mailto:james.aley@swiftkey.net" target="_blank">james.aley@swiftkey.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey guys,<div><br></div><div>Not sure if this is the most appropriate list - please let me know if this question is best asked elsewhere!</div>
<div><br></div><div>I&#39;m using Infinispan&#39;s Lucene Directory with a Cassandra CacheStore backing it, version 5.3.0.Final. Everything seems to be more-or-less working fine, except for some kind of apparent race condition on start-up.</div>

<div><br></div><div>At the first point where my code accesses the InfinispanDirectory, I get usually get a Cassandra TimedOutException from the Client.get() operation in the CacheLoader. I&#39;ve been googling around and all the suggestions on the web (relating to using Cassandra directly) don&#39;t seem particularly relevant, as the most common cause is reading too much data in single operations. This is merely a 32kb read.</div>

<div><br></div><div>I was wondering if the problem is that my code is supposed to somehow wait for the Cache instances to be &quot;ready&quot; before using them? Is there some kind of listener I&#39;m supposed to use to be notified of the Cache being ready for read operations?</div>

<div><br></div><div>Any suggestions greatly appreciated!</div><div><br></div><div><br></div><div>Thanks,</div><div>James.</div></div>
</blockquote></div><br></div>