Re: Consistency level shows as null in Java driver

2020-06-12 Thread manish khandelwal
This is how getConsistencyLevel method is implemented. This method returns consistencylevel of the query or null if no consistency level has been set using setConsistencyLevel. Regards Manish On Fri, Jun 12, 2020 at 3:43 PM Manu Chadha wrote: > Hi > > In my Cassandra Java driver code, I am

Re: Do I understand the working of RF and CL correctly?

2020-06-12 Thread manish khandelwal
Yes Manu you are correct in your understanding. Consistency level defines minimum number of nodes that must acknowledge a read or write operation before the operation can be considered as successful. In your case, since two nodes were up and you queried with CL 1, your request was successful. That

Do I understand the working of RF and CL correctly?

2020-06-12 Thread Manu Chadha
Hi Just want to confirm whether I understand RF and CL correctly. I have got 2 Cassandra nodes up C:\Users\manuc\Documents\manu\codingjedi>docker container ps -a CONTAINER IDIMAGE COMMAND CREATED STATUSPORTS

Consistency level shows as null in Java driver

2020-06-12 Thread Manu Chadha
Hi In my Cassandra Java driver code, I am creating a query and then I print the consistency level of the query val whereClause = whereConditions(tablename, id); cassandraRepositoryLogger.trace("getRowsByPartitionKeyId: looking in table "+tablename+" with partition key