[ 
https://issues.apache.org/jira/browse/CASSANDRA-976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856581#action_12856581
 ] 

Ted Zlatanov commented on CASSANDRA-976:
----------------------------------------

I'm very comfortable letting you and Gary pick the one you like :)  I was just 
curious how you planned to resolve this common scenario.

FWIW I wouldn't have an Attic directory.  I would: 

1) forbid Thrift clients from creating or renaming a keyspace to anything 
starting with "@"; 
2) on drop, rename internally to "@%s-%d" with a millisecond timestamp, failing 
the drop operation if it fails 10 times;
3) on cleanup, remove @*

That way your filesystem hierarchy stays nice and flat and you don't introduce 
new things in it.  Also renames in the same directory are atomic and pretty 
fail-safe on all platforms, while renaming to another directory can potentially 
fail in many annoying ways.  But as I said, I'm happy with whatever works, I 
just don't want the clutter of dropped keyspaces from my tests.

> clean up dropped keyspaces' directories
> ---------------------------------------
>
>                 Key: CASSANDRA-976
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-976
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Ted Zlatanov
>            Priority: Minor
>
> When a keyspace is dropped, the data directory should be rmdir()ed.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to