[jboss-jira] [JBoss JIRA] (WFCORE-1996) AbstractRemoveStepHandler can endlessly loop if a child doesn't remove
Brian Stansberry (JIRA)
issues at jboss.org
Tue Nov 15 21:41:00 EST 2016
Brian Stansberry created WFCORE-1996:
----------------------------------------
Summary: AbstractRemoveStepHandler can endlessly loop if a child doesn't remove
Key: WFCORE-1996
URL: https://issues.jboss.org/browse/WFCORE-1996
Project: WildFly Core
Issue Type: Bug
Components: Domain Management
Reporter: Brian Stansberry
Assignee: Brian Stansberry
See PR for WFLY-2640 for an example of a resource that doesn't get removed by a remove call.
In a situation like that, the AbstractRemoveStepHandler performRemove logic will never remove the resource, because it always finds it has the child. So it will just loop trying to remove the child and then calling itself again.
Possible solution is for AbstractRemoveStepHandler to have its own AttachmentKey<Set<PathAddress>> and before adding itself in a step, it adds its address to the set. Then if performRemove finds itself in the set it knows it's already tried to remove children and just removes itself.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list