incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: The action of the file system at drop column family execution
Date Thu, 16 May 2013 23:43:29 GMT
> When "drop column family" is executed irrespective of the existence of 
> generation of Snapshot, $KS/$CF/ directory certainly remains. 
I don't think there is any code there to delete the empty directories. We only care about
the files in there. 

Cheers


-----------------
Aaron Morton
Freelance Cassandra Consultant
New Zealand

@aaronmorton
http://www.thelastpickle.com

On 15/05/2013, at 7:41 PM, hiroshi.kise.rk@hitachi.com wrote:

> 
> Dear Aaron Morton
> 
> I'm Hiroshi. Thank you for the reply.
> $KS/$CF/snapshots directory namely :
> Under C:\var\lib\cassandra\data\MyKeyspace\testcf1
> 
> dir command execution:
> 2013/05/09  14:04    <DIR>          .
> 2013/05/09  14:04    <DIR>          ..
>                0 File(s)                  0  bytes
>                2 Dir(s)   139,587,530,752 bytes free
> 
> snapshot was not generated. 
> It is a repeated question (I am sorry). 
> 
> When "drop column family" is executed irrespective of the existence of 
> generation of Snapshot, $KS/$CF/ directory certainly remains. 
> 
> It is a meaning? 
> ----------
> Hiroshi Kise
> 
> 
> 
> 
> 
> 
> 
> Date: Wed, 15 May 2013 05:32:50 +0900, aaron morton <aaron@thelastpickle.com> wrote;
> --------------- Begin of replied message ----------------------
> 
>> * Although a directory (column family:testcf1) remains, is it satisfactory on a file
system? 
> A snapshot is taken when a truncate or drop command is run. You should see a $KS/$CF/snapshots
directory. 
> 
> Cheers
> 
> -----------------
> Aaron Morton
> Freelance Cassandra Consultant
> New Zealand
> 
> @aaronmorton
> http://www.thelastpickle.com
> 
> On 15/05/2013, at 12:45 AM, hiroshi.kise.rk@hitachi.com wrote:
> 
>> 
>> Hi everyone.
>> Although it may be a stupid question, please give me instruction.
>> 
>> [1.Question]
>> A column family is deleted (drop column family testcf1;).
>> As the upper result (dir command execution),
>> <DIR>   testcf1
>>           0 File(s)   0 bytes      
>>           3 Dir(s)      139,587,596,288 bytes free
>> 
>> * As Cassandra, it is the right action?
>> * Although a directory (column family:testcf1) remains, is it satisfactory on a file
system? 
>> 
>> ----------
>> [2. Pre-processing]
>> ( Cassandra-CLI was used. )
>> First, a key space is created (create keyspace MyKeyspace;), 
>> The key space was chosen (use MyKeyspace;). 
>> 
>> And the column family created (create column family testcf1;). 
>> ----------
>> [3.Environment] 
>> Cassandra 1.2.4
>> OS: Windows 7
>> 
>> 
>> Thank you for your consideration. 
>> ----------
>> Hiroshi Kise
> 
> 
> ---------------- End of replied message -----------------------


Mime
View raw message