Search code examples
javacassandrahectorcql

Ban Cassandra from using client timestamps


This post says that client must supply a timestamp when doing Cassandra updates. I wonder if this can be configured, so Cassandra just ignore client timestamps? I know using NTP is a solution, but it is not feasible at the moment.

To be clearer:

I want to configure Cassandra to use system date, and I can keep the system time of Cassandra nodes in synchronization. I just want to keep rogue client timestamps from messing up the records.


Solution

  • CQL uses server timestamps by default, but it still allows manual timestamp specification (USING TIMESTAMP).