Re: Race condition in QueryProcessor::prepare API

2024-01-20 Thread Jaydeep Chovatia
/cassandra/cql3/QueryProcessor.java#L391> . Alex, could you please take a look at it? Jaydeep On Fri, Jan 19, 2024 at 7:17 PM Jaydeep Chovatia wrote: > Hi, > > Today, in our production, we came across the following scenario: > >1. We have 100 nodes of the Cassandra cluster o

Race condition in QueryProcessor::prepare API

2024-01-19 Thread Jaydeep Chovatia
Hi, Today, in our production, we came across the following scenario: 1. We have 100 nodes of the Cassandra cluster on 4.0.6, and our client uses PreparedStatement, say, "*SELECT * FROM T1 WHERE PK=?*" 2. We applied a schema change to add a *regular* column, "*ALTER TABLE T1 ADD

Re: Cassandra 4.0.6 token mismatch issue in production environment

2023-10-23 Thread Jaydeep Chovatia
ssip / UP). A heap dump could have told us a bit more > conclusively, but it's hard to guess for now. > > > > On Mon, Oct 23, 2023 at 3:22 PM Jaydeep Chovatia < > chovatia.jayd...@gmail.com> wrote: > >> The issue was persisting on a few nodes despite no changes to

Re: Cassandra 4.0.6 token mismatch issue in production environment

2023-10-23 Thread Jaydeep Chovatia
want to drop the read log, >> which is the right solution so it doesn’t accidentally return a missing / >> empty result set as a valid query result, instead it’ll force it to read >> from other replicas or time out) >> >> >> >> >> >> On Oct 20,

Re: Cassandra 4.0.6 token mismatch issue in production environment

2023-10-21 Thread Jaydeep Chovatia
nstead it’ll force it to read > from other replicas or time out) > > > > > > On Oct 20, 2023, at 10:57 PM, Jaydeep Chovatia > wrote: > >  > > Hi, > > I am using Cassandra 4.0.6 in production, and receiving the following error. > This indicates that

Cassandra 4.0.6 token mismatch issue in production environment

2023-10-20 Thread Jaydeep Chovatia
Hi, I am using Cassandra 4.0.6 in production, and receiving the following error. This indicates that Cassandra nodes have mismatch in token-owership. Has anyone seen this issue before? Received a read request from /XX.XX.XXX.XXX:Y for a range that is not owned by the current replica

Re: Replacing node without shutting down the old node

2023-05-16 Thread Jaydeep Chovatia
Hi Jeff, Do you think this is a good workaround to have in the Cassandra itself until we have CEP-21 available and cleanup as part of the compaction in the Cassandra itself? It can work as follows in

Re: Is cleanup is required if cluster topology changes

2023-05-09 Thread Jaydeep Chovatia
nd ensure the schema is consistent > across the cluster before running "nodetool cleanup". At the moment, it's > the operator's responsibility to ensure bad things don't happen. > On 09/05/2023 06:20, Jaydeep Chovatia wrote: > > One clarification question Jeff. > AFAIK, t

Re: Is cleanup is required if cluster topology changes

2023-05-08 Thread Jaydeep Chovatia
the code of *nodetool cleanup*? In other words, without CEP-21, why is *nodetool cleanup* a safer operation but doing the same in the regular compaction isn't? Jaydeep On Fri, May 5, 2023 at 11:58 AM Jaydeep Chovatia wrote: > Thanks, Jeff, for the detailed steps and summary. > We wil

Re: Is cleanup is required if cluster topology changes

2023-05-05 Thread Jaydeep Chovatia
ster reads, faster > data deletion than STCS). It's a lot of IO compared to STCS though. > > > > On Fri, May 5, 2023 at 9:02 AM Jaydeep Chovatia < > chovatia.jayd...@gmail.com> wrote: > >> Thanks all for your valuable inputs. We will try some of the suggested >> met

Re: Is cleanup is required if cluster topology changes

2023-05-05 Thread Jaydeep Chovatia
gt; user@cassandra.apache.org> wrote: > >> Have you thought of using "-Dcassandra.replace_address_first_boot=..." >> (or "-Dcassandra.replace_address=..." if you are using an older version)? >> This will not result in a topology change, which means "nodetool cleanup" >&

Re: Is cleanup is required if cluster topology changes

2023-05-04 Thread Jaydeep Chovatia
cheap. Stcs and twcs > are worse, but if you’re really scaling that often, I’d be considering lcs > and running cleanup just before or just after each scaling > > On May 4, 2023, at 9:25 PM, Jaydeep Chovatia > wrote: > >  > Thanks, Jeff! > But in our environment w

Re: Is cleanup is required if cluster topology changes

2023-05-04 Thread Jaydeep Chovatia
; the ring is correct . > > > > On May 4, 2023, at 7:41 PM, Jaydeep Chovatia > wrote: > >  > Isn't this considered a kind of *bug* in Cassandra because as we know > *cleanup* is a lengthy and unreliable operation, so relying on the > *cleanup* means higher chances of

Re: Is cleanup is required if cluster topology changes

2023-05-04 Thread Jaydeep Chovatia
Isn't this considered a kind of *bug* in Cassandra because as we know *cleanup* is a lengthy and unreliable operation, so relying on the *cleanup* means higher chances of data resurrection? Do you think we should discard the unowned token-ranges as part of the regular compaction itself? What are

Re: Cassandra 3.0 upgrade

2022-06-14 Thread Jaydeep Chovatia
dra, you > probably don’t need to worry about the dtest repo. > > - Scott > > On Jun 13, 2022, at 10:36 PM, Jaydeep Chovatia > wrote: > >  > Thanks Jeff and Scott for valuable feedback! > One more question, do we have to upgrade the dTest repo if we go to > 3.0.27,

Re: Cassandra 3.0 upgrade

2022-06-13 Thread Jaydeep Chovatia
Thanks Jeff and Scott for valuable feedback! One more question, do we have to upgrade the dTest repo if we go to 3.0.27, or the one we have currently already working with 3.0.14 should continue to work fine? Jaydeep On Mon, Jun 13, 2022 at 10:25 PM C. Scott Andreas wrote: > Thank you for

Re: Cassandra 3.0.14 transport completely blocked

2022-03-23 Thread Jaydeep Chovatia
se seriously consider upgrade your Cassandra cluster to the least > version. I can't tell which exact version fixed this bug, but we had > removed this from our servers many years ago after several rounds of > upgrades, and we have not had the NTR pool blocking issue coming back. > On 23/0

Re: Cassandra 3.0.14 transport completely blocked

2022-03-22 Thread Jaydeep Chovatia
several years ago, many critical bugs whose consequences include data loss > have been resolved. I'd strongly recommend upgrading to 3.0.26 - and > ideally to 4.0 after you've confirmed behavior is as expected on 3.0.26. > > – Scott > > On Mar 22, 2022, at 9:30 PM, Jaydeep Chovatia

Cassandra 3.0.14 transport completely blocked

2022-03-22 Thread Jaydeep Chovatia
Hi, I have been using Cassandra 3.0.14 in production for a long time. Recently I have found a bug in that, all of a sudden the transport thread-pool hangs. *Observation:* If I do *nodetool tpstats*, then it shows *"Native-Transport-Requests"* is blocking "Active" tasks. I stopped the complete

Re: Lightweight tx is good enough to handle counter?

2016-09-23 Thread Jaydeep Chovatia
Since SERIAL consistency is not supported for batch updates, I used QUORUM for the operation. On Fri, Sep 23, 2016 at 11:23 AM, DuyHai Doan <doanduy...@gmail.com> wrote: > What is the consistency level used for the batch query ? > > > On Fri, Sep 23, 2016 at 8:19 PM

Re: Lightweight tx is good enough to handle counter?

2016-09-23 Thread Jaydeep Chovatia
t idempotent > > On Fri, Sep 23, 2016 at 8:10 PM, Jaydeep Chovatia < > chovatia.jayd...@gmail.com> wrote: > >> We have a following table: >> >> create table mytable { >> >> id int, >> count int static, >> rec_id int, >> primary key

Lightweight tx is good enough to handle counter?

2016-09-23 Thread Jaydeep Chovatia
We have a following table: create table mytable { id int, count int static, rec_id int, primary key (id, rec_id) }; The count in the table represents how many records (rec_id clustering columns) exists. So when we add new a new record we do it following way: UNLOGGED BATCH insert into mytable

Inconsistent results with Quorum at different times

2016-09-16 Thread Jaydeep Chovatia
Hi, We have three node (N1, N2, N3) cluster (RF=3) and data in SSTable as following: N1: SSTable: Partition key K1 is marked as tombstone at time T2 N2: SSTable: Partition key K1 is marked as tombstone at time T2 N3: SSTable: Partition key K1 is valid and has data D1 with lower time-stamp T1

How to get current value of commitlog_segment_size_in_mb?

2016-07-07 Thread Jaydeep Chovatia
Hi, In my project I need to read current value for "commitlog_segment_size_in_mb", I am looking for CQL query to do this. Any idea if this information gets stored in any of the Cassandra system table? Thanks, Jaydeep

Re: Regarding cassandra-stress results

2016-03-14 Thread Jaydeep Chovatia
ms On Mon, Mar 14, 2016 at 11:38 AM, Rajath Subramanyam wrote: > Hello Cassandra Community, > > When cassandra-stress tool dumps the output at the end of the benchmarking > run, what is the unit of latency statistics ? > > latency mean : 0.7 [READ:0.7,

Re: High Bloom filter false ratio

2016-02-19 Thread Jaydeep Chovatia
t; > @Daemon > > Latencies seem to have higher ratios, attached is the graph. > > > I am mostly trying to look at Bloom filters, because the way we do reads, > we read data with non existent partition keys and it seems to be taking > long to respond, like for 720

Re: Debugging write timeouts on Cassandra 2.2.5

2016-02-17 Thread Jaydeep Chovatia
Are you guys using light weight transactions in your write path? On Thu, Feb 11, 2016 at 12:36 AM, Fabrice Facorat wrote: > Are your commitlog and data on the same disk ? If yes, you should put > commitlogs on a separate disk which don't have a lot of IO. > > Others

Re: High read latency

2015-09-27 Thread Jaydeep Chovatia
ng. > > On Fri, Sep 25, 2015 at 3:07 PM, Jaydeep Chovatia < > chovatia.jayd...@gmail.com> wrote: > >> Please find histogram attached. >> >> On Fri, Sep 25, 2015 at 12:20 PM, Ryan Svihla <r...@foundev.pro> wrote: >> >>> if everything is in ra

Re: High read latency

2015-09-25 Thread Jaydeep Chovatia
esults because either a bottleneck was hit somewhere, or > the CPU got slammed with GC, or other processes running on the machine were > contending with Cassandra. > > > On Sep 25, 2015, at 12:45 PM, Jaydeep Chovatia <chovatia.jayd...@gmail.com> > wrote: > > I unde

Re: High read latency

2015-09-25 Thread Jaydeep Chovatia
.com> wrote: > >> thanks for the information. Posting the query too would be of help. >> >> On Tue, Sep 22, 2015 at 11:56 AM, Jaydeep Chovatia < >> chovatia.jayd...@gmail.com> wrote: >> >>> Please find required details here: >>> >>> -

Re: High read latency

2015-09-22 Thread Jaydeep Chovatia
select * from test where a = ? and b = ? On Tue, Sep 22, 2015 at 10:27 AM, sai krishnam raju potturi < pskraj...@gmail.com> wrote: > thanks for the information. Posting the query too would be of help. > > On Tue, Sep 22, 2015 at 11:56 AM, Jaydeep Chovatia < > chovatia.jay

Re: High read latency

2015-09-22 Thread Jaydeep Chovatia
ttings about the heap > > - Execution time of the GC > > > > 43ms for a read latency may be acceptable according to the number of > request per second. > > > > > > Eric > > > > *De :* Jaydeep Chovatia [mailto:chovatia.jayd...@gmail.com] >

High read latency

2015-09-21 Thread Jaydeep Chovatia
Hi, My application issues more read requests than write, I do see that under load cfstats for one of the table is quite high around 43ms Local read count: 114479357 Local read latency: 43.442 ms Local write count: 22288868 Local

Re: Cassandra WriteTimeoutException

2015-07-28 Thread Jaydeep Chovatia
Are you using light weight transactions anywhere? On Wed, Jul 15, 2015 at 7:40 AM, Michael Shuler mich...@pbandjelly.org wrote: On 07/15/2015 02:28 AM, Amlan Roy wrote: Hi, I get the following error intermittently while writing to Cassandra. I am using version 2.1.7. Not sure how to fix

Re: Write timeout under load but Read is fine

2015-03-06 Thread Jaydeep Chovatia
subsequent tests/ findings. Jan/ On Thursday, March 5, 2015 12:19 PM, Jaydeep Chovatia chovatia.jayd...@gmail.com wrote: I have tried increasing timeout to 1 but no help. Also verified that there is no network lost packets. Jaydeep On Wed, Mar 4, 2015 at 12:19 PM, Jan cne

Re: Write timeout under load but Read is fine

2015-03-05 Thread Jaydeep Chovatia
- check the time-outs if any on the client inserting the Writes - check the Network for dropped/lost packets hope this helps Jan/ On Wednesday, March 4, 2015 12:26 PM, Jaydeep Chovatia chovatia.jayd...@gmail.com wrote: Hi, In my test program when I increase load then I keep getting

Write timeout under load but Read is fine

2015-03-04 Thread Jaydeep Chovatia
Hi, In my test program when I increase load then I keep getting few write timeout from Cassandra say every 10~15 mins. My read:write ratio is 50:50. My reads are fine but only writes time out. Here is my Cassandra details: Version: 2.0.11 Ring of 3 nodes with RF=3 Node configuration: 24 core +

One node taking more resources than others in the ring

2015-02-23 Thread Jaydeep Chovatia
Hi, I have three node cluster with RF=1 (only one Datacenter) with following size: Datacenter: DC1 === Status=Up/Down |/ State=Normal/Leaving/Joining/Moving -- AddressLoad Tokens Owns Host ID Rack UN IP1 4.02 GB1 33.3% ID1 RAC1 UN IP2 4.05 GB

Re: Replacing a dead node by deleting it and auto_bootstrap'ing a new node (Cassandra 2.0)

2014-12-05 Thread Jaydeep Chovatia
Bahumi om...@everything.me wrote: I guess Cassandra is aware that it has some replicas not meeting the replication factor. Wouldn't it be nice if a bootstrapping node would get those? Could make things much simpler in the Ops view. What do you think? On Fri, Dec 5, 2014 at 8:31 AM, Jaydeep

Re: Replacing a dead node by deleting it and auto_bootstrap'ing a new node (Cassandra 2.0)

2014-12-04 Thread Jaydeep Chovatia
as per my knowledge if you have externally NOT specified -Dcassandra.replace_address=old_node_ipaddress then new tokens (randomly) would get assigned to bootstrapping node instead of tokens of dead node. -jaydeep On Thu, Dec 4, 2014 at 6:50 AM, Omri Bahumi om...@everything.me wrote: Hi, I

Re: CQL performance inserting multiple cluster keys under same partition key

2014-08-27 Thread Jaydeep Chovatia
This clarifies my doubt. Thanks You Sylvain for your help. On Tue, Aug 26, 2014 at 11:59 PM, Sylvain Lebresne sylv...@datastax.com wrote: On Tue, Aug 26, 2014 at 6:50 PM, Jaydeep Chovatia chovatia.jayd...@gmail.com wrote: Hi, I have question on inserting multiple cluster keys under same

CQL performance inserting multiple cluster keys under same partition key

2014-08-26 Thread Jaydeep Chovatia
Hi, I have question on inserting multiple cluster keys under same partition key. Ex: CREATE TABLE Employee ( deptId int, empId int, name varchar, address varchar, salary int, PRIMARY KEY(deptId, empId) ); BEGIN *UNLOGGED *BATCH INSERT INTO Employee (deptId, empId, name,

Re: CQL performance inserting multiple cluster keys under same partition key

2014-08-26 Thread Jaydeep Chovatia
26, 2014 at 11:51 AM, Vivek Mishra mishra.v...@gmail.com wrote: AFAIK, it is not. With CAS it should br On 26/08/2014 10:21 pm, Jaydeep Chovatia chovatia.jayd...@gmail.com wrote: Hi, I have question on inserting multiple cluster keys under same partition key. Ex: CREATE TABLE Employee

Cassandra LongType data insertion problem

2011-01-04 Thread Jaydeep Chovatia
Hi, I have configured Cassandra Column Family (standard CF) of LongType. If I try to insert data (using batch_mutate) in this Column Family then it shows me following error: A long is exactly 8 bytes. I have tried assigning column name of 8 bytes, 7 bytes, etc. but it shows same error. Please

Cassandra 0.7 C++ Thrift delete problem

2010-12-11 Thread Jaydeep Chovatia
Hi, I am facing some issues with delete operation in Cassandra-0.7.0 using C++ Thrift API. Please find details here: C++ Thrift Machine: Linux 64-bit 1. I am using remove thrift API to delete either column or column family. Problem in this is when I call remove then it hangs forever (never