Yes, that's due to that file locking.
See my comment here:
-
http://jira.jboss.com/jira/browse/JBAS-5625
DeploymentProgressImpl:
try
{
target.undeploy(deployment);
status = new SerializableDeploymentStatus(command,
StateType.COMPLETED);
status.setTarget(target);
status.setMessage("Completed undeploy for target: "+target);
status.setCompleted(true);
status.setRunning(true);
currentStatus = status;
event = new ProgressEvent(deployment, currentStatus);
notify(event);
}
catch(Exception e)
{
status = new SerializableDeploymentStatus(command,
StateType.FAILED);
status.setTarget(target);
status.setFailure(e);
status.setFailed(true);
currentStatus = status;
ProgressEvent error = new ProgressEvent(deployment,
currentStatus);
notify(error);
break;
}
}
So instead of complete == true, you get false, since target.undeploy
throws error not being able to delete file.
And the test asserts on complete == true.