Re: WriteTimeoutException with LWT after few milliseconds

2017-04-19 Thread Jeff Jirsa
On 2017-04-19 08:10 (-0700), Sylvain Lebresne wrote: > This is https://issues.apache.org/jira/browse/CASSANDRA-9328 and I'd rather > not repeat myself here so I'll let you read the details. Let's maybe not > open another JIRA ticket though since we have this one. >

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-19 Thread Sylvain Lebresne
This is https://issues.apache.org/jira/browse/CASSANDRA-9328 and I'd rather not repeat myself here so I'll let you read the details. Let's maybe not open another JIRA ticket though since we have this one. On Wed, Apr 19, 2017 at 4:29 PM, benjamin roth wrote: > Thanks, Jeff! >

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-19 Thread benjamin roth
Thanks, Jeff! As soon as I have some spare time I will try to reproduce and open a Jira for it. 2017-04-19 16:27 GMT+02:00 Jeff Jirsa : > > > On 2017-04-13 05:13 (-0700), benjamin roth wrote: > > I found out that if the WTEs occur, there was already another

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-19 Thread Jeff Jirsa
On 2017-04-13 05:13 (-0700), benjamin roth wrote: > I found out that if the WTEs occur, there was already another process > inserting the same primary key because I found duplicates in some places > that perfectly match the WTE logs. > > Does anybody know, why this throws a

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-13 Thread benjamin roth
I found out that if the WTEs occur, there was already another process inserting the same primary key because I found duplicates in some places that perfectly match the WTE logs. Does anybody know, why this throws a WTE instead of returning [applied]' = false ? This is quite confusing! 2017-04-12

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-12 Thread benjamin roth
Hi Roland, LWTs set consistency level implicitly to SERIAL which requires at least QUORUM. No, no node is/was down. If that happens the query will fail with "Could not achieve consistency level QUORUM ..." 2017-04-12 16:48 GMT+02:00 Roland Otta : > Hi Benjamin, > > its

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-12 Thread Carlos Rolo
You can try to use TRACING to debug the situation, but for a LWT to fail so fast, the most probable cause is what you stated: "It is possible that there are concurrent inserts on the same PK - actually thats the reason why I use LWTs." AKA, someone inserted first. Regards, Carlos Juzarte Rolo

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-12 Thread Roland Otta
sorry .. ignore my comment ... i missed your comment that the record is in the table ... On Wed, 2017-04-12 at 16:48 +0200, Roland Otta wrote: Hi Benjamin, its unlikely that i can assist you .. but nevertheless ... i give it a try ;-) whats your consistency level for the insert? what if one

Re: WriteTimeoutException with LWT after few milliseconds

2017-04-12 Thread Roland Otta
Hi Benjamin, its unlikely that i can assist you .. but nevertheless ... i give it a try ;-) whats your consistency level for the insert? what if one ore more nodes are marked down and proper consistency cant be achieved? of course the error message does not indicate that problem (as it says its