Reading error in cassandra

前端 未结 1 1133
情深已故
情深已故 2020-12-14 17:39

I\'m having a weir error trying to read data from a Cassandra table. I have a single-node installation, with the default setup. This is the query I\'m making:



        
相关标签:
1条回答
  • 2020-12-14 17:43

    You are exceeding the tombstone_failure_threshold. It defaults to 100'000. You can either

    • increase the value in the cassandra.yaml or
    • clean up your tombstones

    To do the latter alter your table and set the gc_grace_seconds to 0:

    ALTER TABLE component_readings WITH GC_GRACE_SECONDS = 0;
    

    Then trigger a compaction via the nodetool. This will flush out all tombstones.

    In your particular scenario of a one-node-cluster you could leave the GC_GRACE_SECONDS at zero. But if you do, keep in mind to undo this if you ever want to use more than one node!

    0 讨论(0)
提交回复
热议问题