We're experiencing problems with writing data in cassandra table.
The flow is following.. we delete all records from XXX with some primary key.
Then inserting new ones in loop.
execute("DELETE FROM XXX WHERE key = {SOME_UUID}");
for(int i = 0; i < 5; ++i) {
execute("INSERT INTO XXX (key, field1, field2) VALUES ({SOME UUID},'field1','field2')";
}
The result: Sometimes not all rows are inserted into the table. After querying the table we see that not all rows were inserted.
The environment we have:
We use DataStax Enterprise Edition (4.5.2). Cassandra 2.0.10.
The datacenter has 4 nodes and the keyspace we work on has replication_factor set to 3.
The queries CONSISTENCY_LEVEL is set to LOCAL_QUORUM.
The java driver is data stax enterprise 2.1.1
Thanks in advance. Any help would be appreciated.
ONEand see if that makes a difference. - Aaron