Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

Jyothi avatar image
Jyothi asked Erick Ramirez answered

Is it allowed to do a forced flush while doing a snapshot?

Is it allowed to do a forced flush or flush to the sstable while doing a snapshot?

backup
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

steve.lacerda avatar image
steve.lacerda answered

Snapshots are just links, there is no implication if you do any action while creating a snapshot. The only thing that may create a problem is if you have something reading the snapshots while deleting them at the same time. This is not an issue in Cassandra, but I've seen customers implement cron jobs that clear snapshots, while at the same time having something trying to read those snapshots (like reaper repair will try and validate using snapshots), and that can create an FS disk issue which could cause a race and cause the disk failure policy to invoke.

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Erick Ramirez avatar image
Erick Ramirez answered

It isn't necessary to manually flush memtables to disk (with nodetool flush).

Creating a snapshot (with nodetool snapshot) automatically triggers a memtable flush before the snapshot is created to make sure that all the data is included.

For details on how it works, see Taking a snapshot in Cassandra. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.