[
https://issues.jboss.org/browse/AS7-3698?page=com.atlassian.jira.plugin.s...
]
Richard Achmatowicz commented on AS7-3698:
------------------------------------------
Same problem here as in AS7-3695: failure to remove all services started by cache:add().
Fixed by:
{noformat}
// remove all services started by CacheAdd, in reverse order
// remove the BinderService instance
String jndiName = (model.hasDefined(ModelKeys.JNDI_NAME) ?
InfinispanJndiName.toJndiName(model.get(ModelKeys.JNDI_NAME).asString()) :
InfinispanJndiName.defaultCacheJndiName(containerName,
cacheName)).getAbsoluteName();
ContextNames.BindInfo bindInfo = ContextNames.bindInfoFor(jndiName);
context.removeService(bindInfo.getBinderServiceName()) ;
// remove the CacheService instance
context.removeService(EmbeddedCacheManagerService.getServiceName(containerName).append(cacheName));
// remove the CacheConfigurationService
context.removeService(CacheConfigurationService.getServiceName(containerName,
cacheName));
{noformat}
Management: infinispan cache-container/cache remove operation does
not really remove cache
------------------------------------------------------------------------------------------
Key: AS7-3698
URL:
https://issues.jboss.org/browse/AS7-3698
Project: Application Server 7
Issue Type: Bug
Components: Clustering, Domain Management
Affects Versions: 7.1.0.Final
Reporter: Dominik Pospisil
Assignee: Richard Achmatowicz
Management: infinispan cache-container/cache remove operation does not really remove
cache. Subsequent add fails.
[standalone@localhost:9999 /]
/subsystem=infinispan/cache-container=testX/local-cache=test-local-cache:add(start="EAGER")
{"outcome" => "success"}
[standalone@localhost:9999 /]
/subsystem=infinispan/cache-container=testX/local-cache=test-local-cache:remove
{"outcome" => "success"}
[standalone@localhost:9999 /]
/subsystem=infinispan/cache-container=testX/local-cache=test-local-cache:add(start="EAGER")
{
"outcome" => "failed",
"failure-description" => "JBAS014749: Operation handler failed:
Service jboss.infinispan.testX.test-local-cache.config is already registered",
"rolled-back" => true
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira