I have a 3 node cassandra cluster. A job is writing to a particular node and i try to read the data in a separate thread which might end up with a different cassandra node. I get no data from cassandra even the data by a separate thread inserts it before 10-15 seconds of a query by a different thread.
My replication factor is as below.
SELECT * FROM system.schema_keyspaces;
keyspace_name | durable_writes | strategy_class | strategy_options
--------------------+----------------+------------------------------------------------------+----------------------------
application | True | org.apache.cassandra.locator.NetworkTopologyStrategy | {"DC1":"3"}
system_distributed | True | org.apache.cassandra.locator.SimpleStrategy | {"replication_factor":"3"}
system | True | org.apache.cassandra.locator.LocalStrategy | {}
Consistency :-
- Read and Write is happening by a separate application.
- Application which writes data has set the consistency level to ANY.
- Application which reads data has set the consistency level to QUORUM.
Is there any configuration I am missing here?