Hide Forgot
Description of problem: Content from 'data' directory are not removed if we undeploy application in 'admin-only' mode. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Start server instance using --admin-only flag 2.Deploy application using CLI command. ~~~ deploy /valid/path/WebApp.war --runtime-name=WebApp.war --name=WebApp.war ~~~ 3. Undeploy application using CLI command: ~~~ undeploy WebApp.war ~~~ 4. Application will be undeployed but content from 'data' directory are not removed. Actual results: content from 'data' directory are not removed if we undeploy application in "admin-only" mode. Expected results: content from 'data' directory should be removed even if we undeploy application in "admin-only" mode. Additional info:
What content in the data directory are you referring to? I assume you mean the deployment content in data/content but I want to clarify.
Yes, I am referring to deployment content in data/content directory.
I can see the problem is from: https://github.com/jbossas/jboss-eap/blob/144d1d15f94f19914e4230601366adc22473c846/server/src/main/java/org/jboss/as/server/deployment/DeploymentRemoveHandler.java#L76 https://github.com/jbossas/jboss-eap/blob/09a126812c735c23e9d599f71e8f13430f113f3f/controller/src/main/java/org/jboss/as/controller/AbstractOperationContext.java#L897 where the runningMode value is ADMIN_ONLY will bypass that step in DeploymentRemoveHandler.java I can also reproduce this in WildFly
clean-obsolete-content task will clean it in background after switching back to normal mode in 10 mins. We consider this as a RFE and will follow up in upstream jira.