Re: Index creation sometimes fails

2014-07-25 Thread Clint Kelly
Hi Tyler, FWIW I was not able to reproduce this problem with a smaller example. I'll go ahead and file the JIRA anyway. Thanks for your help! Best regards, Clint On Thu, Jul 17, 2014 at 3:05 PM, Tyler Hobbs wrote: > > On Thu, Jul 17, 2014 at 4:59 PM, Clint Kelly > wrote: > >> >> I will pos

Re: Index creation sometimes fails

2014-07-17 Thread Tyler Hobbs
On Thu, Jul 17, 2014 at 4:59 PM, Clint Kelly wrote: > > I will post a JIRA, along with directions on how to get this to > happen. The tricky thing, though, is that this doesn't always happen, > and I cannot reproduce it on my laptop or in a VM. > Even if you can't reproduce, just include as man

Re: Index creation sometimes fails

2014-07-17 Thread Clint Kelly
Hi Tyler, Thanks for replying. This is good to know that I am not going crazy! :) I will post a JIRA, along with directions on how to get this to happen. The tricky thing, though, is that this doesn't always happen, and I cannot reproduce it on my laptop or in a VM. BTW you mean the datastax

Re: Index creation sometimes fails

2014-07-16 Thread Tyler Hobbs
On Tue, Jul 15, 2014 at 1:40 PM, Clint Kelly wrote: > > Is there some way to get the driver to block until the schema code has > propagated everywhere? My currently solution feels rather janky! The driver *should* be blocking until the schema has propagated already. If it's not, that's a bug.

Re: Index creation sometimes fails

2014-07-15 Thread Clint Kelly
Hi DuyHai, Thanks for the response. Is the recommended best practice therefore to do what I describe above? Is there some way to get the driver to block until the schema code has propagated everywhere? My currently solution feels rather janky! Thanks! Best regards, Clint On Tue, Jul 15, 201

Re: Index creation sometimes fails

2014-07-15 Thread DuyHai Doan
As far as I know, schema propagation always takes some times in the cluster. On this mailing list some people in the past faced similar behavior. On Tue, Jul 15, 2014 at 8:20 PM, Clint Kelly wrote: > FWIW I was able to work around this problem by having my code run the > following loop: > > whi

Re: Index creation sometimes fails

2014-07-15 Thread Clint Kelly
FWIW I was able to work around this problem by having my code run the following loop: while (the index doesn't exit and we haven't hit our limit of number of tries): try to create the index read from system.schema_columns to see if the index exists if so, then break if not, pause 5

Re: Index creation sometimes fails

2014-07-14 Thread Clint Kelly
BTW I have seen this using versions 2.0.1 and 2.0.3 of the java driver on a three-node cluster with DSE 4.5. On Mon, Jul 14, 2014 at 5:51 PM, Clint Kelly wrote: > Hi everyone, > > I have some code that I've been fiddling with today that uses the > DataStax Java driver to create a table and then c