Re: Long delays when trying to recover from errors in Java client at startup

2017-05-22 Thread Toby Corkindale
Hi Magnus, I can't use riak-admin in a script like this, because Riak KV is not installed on the client containers. Ah, I forgot that bucket listing was the same as key listing. I'll switch that to a different test. In this use case, though, it's not too important -- I'm trying to deal with unit t

Re: Long delays when trying to recover from errors in Java client at startup

2017-05-22 Thread Magnus Kessler
On 22 May 2017 at 07:02, Toby Corkindale wrote: > Hi, > I've been trying to make a JVM-based app have better error recovery when > the Riak cluster is still in a starting-up state. > I have a fairly naive wait-loop that tries to connect and list buckets, > and if there's an exception, retry again

Long delays when trying to recover from errors in Java client at startup

2017-05-21 Thread Toby Corkindale
Hi, I've been trying to make a JVM-based app have better error recovery when the Riak cluster is still in a starting-up state. I have a fairly naive wait-loop that tries to connect and list buckets, and if there's an exception, retry again after a short delay. However once the Riak cluster comes g