[jboss-jira] [JBoss JIRA] (WFLY-4500) CMResourceService#stop fails to clean up

Philippe Marschall (JIRA) issues at jboss.org
Thu Apr 16 01:30:19 EDT 2015


     [ https://issues.jboss.org/browse/WFLY-4500?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philippe Marschall updated WFLY-4500:
-------------------------------------
    Fix Version/s: 9.0.0.CR1


> CMResourceService#stop fails to clean up
> ----------------------------------------
>
>                 Key: WFLY-4500
>                 URL: https://issues.jboss.org/browse/WFLY-4500
>             Project: WildFly
>          Issue Type: Patch
>          Components: Transactions
>            Reporter: Philippe Marschall
>            Assignee: Philippe Marschall
>             Fix For: 9.0.0.CR1
>
>
> CMResourceService#stop fails to clean up values that #start creates.
> The issue is the line
> {code}
> jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap().remove(immediateCleanup);
> {code}
> immediateCleanup is a {{Boolean}} and the return type of {{getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap()}} is {{Map<String, Boolean>}}
> So this line never does anything. The line should read
> {code}
> jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap().remove(jndiName);
> {code}
> because if we look a the #start method above we see
> {code}
> Map<String, Boolean> performImmediateCleanupOfConnectableResourceBranchesMap = jtaEnvironmentBean.getValue().getPerformImmediateCleanupOfCommitMarkableResourceBranchesMap();  
> performImmediateCleanupOfConnectableResourceBranchesMap.put(jndiName, immediateCleanup);
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list