Unable to Clear Snapshot Using Nodetool. Snapshot Is Never Deleted

When I run nodetool clearsnapshot I get the normal "Requested clearing snapshot(s)" message, but the snapshot is never removed. What can I do to troubleshoot why this is occurring? Is it acceptable for me to just manually remove the snapshot directories from the tablespace directories as a workaround for this?

nodetool clearsnapshot 1472489985541

Requested clearing snapshot(s) for [1472489985541]

nodetool listsnapshots | awk '{print $1}' | grep ^1 | sort -u

1472489985541
1473165734236
1473690660090
1474296554367

2 Answers

Is it acceptable for me to just manually remove the snapshot directories from the tablespace directories as a workaround for this?

Yes, you can always safely remove the snapshots directories manually. They are just hard links to actual SSTables

1

In order to delete a snapshot from all keyspaces using the snapshot name, you must specify the -t flag in your clearsnapshot command.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest