CDV ❯ tc:clean does not clean
-
Bug
-
Status: Closed
-
1 Critical
-
Resolution: Fixed
-
-
-
hhuynh
-
Reporter: tgautier
-
March 13, 2008
-
0
-
Watchers: 0
-
April 18, 2008
-
April 07, 2008
Description
Before I run tc:clean:
tmac:sample-annotations tgautier$ ls logs-192.168.110.103 src tc-config.xml pom.xml target terracotta
After:
tmac:sample-annotations tgautier$ ls logs-192.168.110.103 src tc-config.xml pom.xml target terracotta
I expecgt terracotta and logs to go away.
The project to repro is :
$ svn co http://svn.terracotta.org/svn/forge/projects/labs/tim-guice $ cd tim-guice $ mvn clean install $ cd sample $ mvn tc:start $ mvn tc:run
Comments
Eugene Kuleshov 2008-03-25
Eugene Kuleshov 2008-04-07
Should be fixed in trunk (1.1.0-SNAPSHOT version). Please reopen if you still have same issue.
Plugin version 1.0.5 is indeed not cleaning up logs and data dirs. Plugin version 1.0.6-SNAPSHOT in 2.5 branch currently isn’t working because of some tc dependencies not available in tc maven repo, so I can’t verify it.
However I haven’t been able to reproduce this with 1.1.0-SNAPSHOT plugin, so it seem like issue been already fixed in trunk.
I also noticed that tc:clean wasn’t cleaning the stats dirs from CVT, so I’ve added those to cleanup and committed fix to the trunk.
Please note that if logs dirs are declared liketerracotta/%(tc.nodeName)-logs , tc:clean won’t delete terracotta dir, but it will wipe out all *-logs dirs that match nodes configured in element of tc plugin.