Re: Nodetool clearsnapshot does not delete snapshot for dropped column_family

2020-04-30 Thread Sebastian Estevez
Perhaps you had a DDL collision and ended up with two data dirs for the table? In that case running drop table would only move the active table directory to snapshots and as Eric suggested would leave the data in the duplicate directory "orphaned". I haven't tried to reproduce this yet but I thin

Re: Nodetool clearsnapshot does not delete snapshot for dropped column_family

2020-04-30 Thread Sergio
The problem is that folder is not under snapshot but it is under the data path. I tried with the --all switch too Thanks, Sergio On Thu, Apr 30, 2020, 4:21 PM Nitan Kainth wrote: > I don't think it works like that. clearsnapshot --all would remove all > snapshots. Here is an example: > > $ ls -l

Re: Nodetool clearsnapshot does not delete snapshot for dropped column_family

2020-04-30 Thread Nitan Kainth
I don't think it works like that. clearsnapshot --all would remove all snapshots. Here is an example: $ ls -l /ss/xx/cassandra/data/ww/a-5bf825428b3811eabe0c6b7631a60bb0/snapshots/ total 8 drwxr-xr-x 2 cassandra cassandra 4096 Apr 30 23:17 dropped-1588288650821-a drwxr-xr-x 2 cassandra cassandr

Re: Nodetool clearsnapshot does not delete snapshot for dropped column_family

2020-04-30 Thread Erick Ramirez
Yes, you're right. It doesn't show up in listsnapshots nor does clearsnapshot remove the dropped snapshot because the table is no longer managed by C* (because it got dropped). So you will need to manually remove the dropped-* directories from the filesystem. Someone here will either correct me or

Re: Nodetool clearsnapshot doesn't support Column Families

2016-05-18 Thread Dominik Keil
Hi, Here's Cassandra's JIRA: https://issues.apache.org/jira/browse/CASSANDRA As for your question: Yes, you can just rm -r a snapshot folder... nothing bad will happen, except the deletion of that snapshot, obviously :-) Regards Am 17.05.2016 um 18:42 schrieb Anubhav Kale: > > Hello, > > > >

Re: Nodetool clearsnapshot

2015-01-13 Thread Batranut Bogdan
Got it, Thank you! On Tuesday, January 13, 2015 5:00 PM, Yuki Morishita wrote: Snapshot during repair is automatically cleared if repair succeeds. Unfortunately, you have to delete it manually if repair failed or stalled. On Tue, Jan 13, 2015 at 8:30 AM, Batranut Bogdan wrote: > OK

Re: Nodetool clearsnapshot

2015-01-13 Thread Yuki Morishita
Snapshot during repair is automatically cleared if repair succeeds. Unfortunately, you have to delete it manually if repair failed or stalled. On Tue, Jan 13, 2015 at 8:30 AM, Batranut Bogdan wrote: > OK Thanks, > > But I also read that repair will take a snapshot. Due to the fact that I > have R

Re: Nodetool clearsnapshot

2015-01-13 Thread Batranut Bogdan
OK Thanks, But I also read that repair will take a snapshot. Due to the fact that I have Replication factor 3 for my keyspace, I run nodetool clearsnapshot to keep disk space use to a minimum. Will this impact my repair? On Tuesday, January 13, 2015 4:19 PM, Jan Kesten wrote: Hi,

Re: Nodetool clearsnapshot

2015-01-13 Thread Jan Kesten
Hi, I have read that snapshots are basicaly symlinks and they do not take that much space. Why if I run nodetool clearsnapshot it frees a lot of space? I am seeing GBs freed... both together makes sense. Creating a snaphot just creates links for all files unter the snapshot directory. This i