[
https://issues.apache.org/jira/browse/CASSANDRA-17568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525494#comment-17525494
]
Stefan Miklosovic commented on CASSANDRA-17568:
-----------------------------------------------
_Deleting directories which aren't data paths of any existing table would
assume that nothing else could have created them, which makes this approach
particularly dangerous._
I agree, but it is not like it would delete directories which are not beloning
to any existing table automatically (however I can imagine a switch which would
delete it if you want). It would merely print it out and you would have to deal
with it. It is just about providing you more comfort so you do not need to go
through it manually.
Yes, there is a lot of room for improvements here. I think once Paulo manages
to incorporate his changes it will unblock a lot other tickets. I can see quite
a bright future post 4.1 to improve stuff around snapshotting / data dir
"management" greatly.
> Tool to list data directories
> -----------------------------
>
> Key: CASSANDRA-17568
> URL: https://issues.apache.org/jira/browse/CASSANDRA-17568
> Project: Cassandra
> Issue Type: New Feature
> Components: Tool/nodetool
> Reporter: Tibor Repasi
> Assignee: Tibor Repasi
> Priority: Normal
> Fix For: 4.x
>
>
> When a table is created, dropped and re-created with the same name,
> directories remain within data paths. Operators may be challenged finding out
> which directories belong to existing tables and which may be subject to
> removal. However, the information is available in CQL as well as in MBeans
> via JMX, a convenient access to this information is still missing.
> My proposal is a new nodetool subcommand allowing to list data paths of all
> existing tables.
> {code}
> % bin/nodetool datapaths -- example
> Keyspace : example
> Table : test
> Paths :
>
> /var/lib/cassandra/data/example/test-02f5b8d0c0e311ecb327ff24df5ab301
> ----------------
> {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]