Description of problem: The subfolder located in domain/servers/serverName/data/content cannot be removed when undeploying the application from a stopped server. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Start EAP 6 as domain mode. 1.1 <EAP6>/bin/domain.xml 2. Using JBOSS CLI to connect to the EAP6. 2.1 <EAP6>/bin/jboss_cli.sh --connect 3. deploy one application to main-server-group via JBOSS CLI. After this, there is a new subfolder will be created in the directory domain/servers/serverName/data/content. 3.1 CLI> deploy /path/to/XX.ear --server-groups=main-server-group 4. stop the main-server-group 4.1 CLI> /server-group=main-server-group:stop-servers 5. undeploy the application. 5.1 CLI> undeploy XX.ear --server-groups=main-server-group 6. start the main-server-group Actual results: It displays JBAS014901: Content removed from location domain/servers/serverName/data/content in log. But the subfolder related to the XX.ear doesn't be removed from the content folder. Expected results: The subfolder related to the XX.ear could be removed from the content folder. Additional info: This issue could be reproduced in EAP6.1.0 GA.
*** Bug 1124689 has been marked as a duplicate of this bug. ***
Bug 1029851 is about a similar problem caused by cancelling the second step of the web UI, which will hopefully be resolved by switching to a single-step UI.
Emmanuel Hugonnet <ehugonne> updated the status of jira WFLY-122 to Coding In Progress
PR : https://github.com/jbossas/jboss-eap/pull/1969 Upstream : https://github.com/wildfly/wildfly-core/pull/284
This doesn't work for me (6.4.0.DR11): ./domain.sh ./jboss-cli.sh -c [domain@localhost:9999 /] deploy test.war --server-groups=main-server-group [domain@localhost:9999 /] /server-group=main-server-group:stop-servers [domain@localhost:9999 /] undeploy test.war --server-groups=main-server-group [domain@localhost:9999 /] /server-group=main-server-group:start-servers find . -name content ./data/content ./servers/server-two/data/content ./servers/server-two/data/content/ed/1e8553c719acbc0976d74fc93ea8e51b769171/content ./servers/server-one/data/content ./servers/server-one/data/content/ed/1e8553c719acbc0976d74fc93ea8e51b769171/content content files from domain/servers/server-*/data/content are still not removed
How long did you wait ?
Verifying the issue after chat with Emmanuel. EAP triggers :clean-obsolete-content() every 5 minutes. All unused content is marked as obsolete on first run, all marked stuff is removed on second run. Verified on EAP 6.4.0.DR11