Netflix / astyanax

Cassandra Java Client
Apache License 2.0
1.04k stars 355 forks source link

beta java driver seems not using timestamp when deleting a row. #576

Open davewgithub opened 9 years ago

davewgithub commented 9 years ago

Steps to reproduce the issue:

  1. Uses CqlFamilyFactory to build a keyspace.
  2. Calls prepareMutationBatch to create a mutation batch.
  3. Calls withTimestamp(some timestamp value) of the mutation batch. Then, calls deleteRow of the mutation batch. Cassandra responds to a statement in the form of "DELETE FROM keyspace_name WHERE partition_key=some_key". There is no timestamp incorporated into the delete statement.

This could cause erratic behaviors when mutating a Cassandra row.