Re: Async queries

2017-10-02 Thread Andy Tolbert
Hi Charu, Since the driver uses Guava futures, you can use some of the methods in Futures to add listeners, callbacks and transformers that are invoked when the future completes without blocking

Re: Migrating a Limit/Offset Pagination and Sorting to Cassandra

2017-10-04 Thread Andy Tolbert
Hi Daniel, To answer this question: > How long is the paginationState from the driver current? The paging state itself contains information about the position in data where to proceed from, so you don't need to worry about it becoming stale/invalid. The only exception is if you upgrade your

Re: Limit on number of connections to Cassandra

2017-09-08 Thread Andy Tolbert
Hello, If I'm understanding the question correctly, as of C* 2.0.15 / 2.1.5 via CASSANDRA-8086 you can limit the maximum number of connections allowed to a C* node via native_transport_max_concurrent_connections

Re: Cassandra compatibility matrix

2017-09-12 Thread Andy Tolbert
Hi Dmitry, We are currently working on updating our matrices for the drivers, but any version of driver 3.0+ will work with cassandra 3.X. Thanks, Andy On Tue, Sep 12, 2017 at 12:30 PM Dmitry Buzolin wrote: > Thank you Jon. > > Is there way to find what Datastax driver

Re: DataStax Java driver QueryBuilder: CREATE table?

2017-12-14 Thread Andy Tolbert
Hi Oliver, SchemaBuilder enables building schema DDL statements like CREATE TABLE, KEYSPACE and so on. You can find some examples in the tests

Re: code snippet for cqlsh COPY from

2017-10-25 Thread Andy Tolbert
Hi Suresh, cqlsh COPY does batches intelligently by only grouping inserts targeting the same partition in a batch. As of version 3.6, C* will not emit the "batch size exceeded" errors if all statements in a batch belong to the same partition (CASSANDRA-13467

Re: Cassandra client drivers

2018-05-07 Thread Andy Tolbert
Hi Abdul, If you are already at C* 3.1.0 and the driver you are using works, it's almost certain to also work with 3.11.2 as well as there are no protocol changes between these versions. I would advise testing your application out against a 3.11.2 test environment first though, just to be safe

Re: Client ID logging

2018-05-21 Thread Andy Tolbert
CASSANDRA-13665 adds a 'nodetool clientlist' command which I think would be helpful in this circumstance. That feature is targeted for C* 4.0 however. You could use something like lsof to see what active

Re: How to get page id without transmitting data to client

2017-12-29 Thread Andy Tolbert
Hi Eunsu, Unfortunately there is not really a way to do this that I'm aware of. The page id contains data indicating where to start reading the next set of rows (such as partition and clustering information), and in order to get to that position you have to actually read the data. The driver

Re: why returned achievedConsistencyLevel is null

2018-08-25 Thread Andy Tolbert
Hi Vitaliy, That method (https://docs.datastax.com/en/latest-java-driver-api/com/datastax/driver/core/ExecutionInfo.html#getAchievedConsistencyLevel--) is a bit confusing as it will return null when your desired consistency level is achieved: > If the query returned without achieving the

Re: which driver to use with cassandra 3

2018-07-20 Thread Andy Tolbert
Hi Vitaliy, Spring uses driver from datastax, though is it a reliable solution for > a long term project, having in mind that datastax and cassandra > parted? > I would definitely consider the DataStax drivers a reliable solution going forward. We remain very committed to supporting our C*

Re: Cassandra Driver Pagination

2018-04-24 Thread Andy Tolbert
Hi Ahmed, The java driver docs do a good job explaining how the driver uses paging, including providing a sequence diagram that describes the flow of the process: https://docs.datastax.com/en/developer/java-driver/3.5/manual/paging/ The driver requests X rows (5000 by default, controlled via

Re: Cassandra Driver Pagination

2018-04-25 Thread Andy Tolbert
; Hi Andy, > > Thanks. > > When the driver requests X rows, C* will load the whole partition (All > rows) before reply to driver ? > > Thanls. > > 2018-04-24 18:11 GMT+02:00 Andy Tolbert <andrew.tolb...@datastax.com>: > >> Hi Ahmed, >> >> Th

Re: Nodejs connector high latency

2018-11-04 Thread Andy Tolbert
Hi Tarun, There are a ton of factors that can impact query performance. The cassandra native protocol supports multiple simultaneous requests per connection. Most drivers by default only create one connection to each C* host in the local data center. That being said, that shouldn't be a

Re: Java 10 for Cassandra 3.11.3

2018-09-03 Thread Andy Tolbert
Hi Jeronimo, Until Cassandra 4.0, JDK 8 is required. See CASSANDRA-9608 for more details. Thanks, Andy On Mon, Sep 3, 2018 at 8:45 AM Jeronimo de A. Barros < jeronimo.bar...@gmail.com> wrote: > Hi guys, > > I'd like to know which java

Re: Deployment

2019-01-12 Thread Andy Tolbert
Hi Amit, a) If queries are submitted to co-ordinator nodes (i assume this includes > writes as well as reads) then: > -- is this the approach also followed for the initial data load? > Writes get sent to all replica nodes, and then the coordinator responds to the client as soon as enough

Re: Unexpected error while refreshing token map, keeping previous version (IllegalArgumentException: Multiple entries with same key ?

2019-06-20 Thread Andy Tolbert
One thing that strikes me is that the endpoint reported is '127.0.0.1'. Is it possible that you have rpc_address set to 127.0.0.1 on each of your three nodes in cassandra.yaml? The driver uses the system.peers table to identify nodes in the cluster and associates them by rpc_address. Can you

Re: Unexpected error while refreshing token map, keeping previous version (IllegalArgumentException: Multiple entries with same key ?

2019-06-20 Thread Andy Tolbert
re I'm not ignoring a possible bug ;) Thanks, Andy On Thu, Jun 20, 2019 at 10:20 AM Andy Tolbert wrote: > One thing that strikes me is that the endpoint reported is '127.0.0.1'. > Is it possible that you have rpc_address set to 127.0.0.1 on each of your > three nodes in cassandra.yaml?