[infinispan-issues] [JBoss JIRA] (ISPN-9935) CDI RemoteCacheProducer leaks thread
Tristan Tarrant (Jira)
issues at jboss.org
Sun Oct 27 16:09:15 EDT 2019
[ https://issues.jboss.org/browse/ISPN-9935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tristan Tarrant updated ISPN-9935:
----------------------------------
Fix Version/s: 10.0.1.Final
(was: 10.0.0.Final)
> CDI RemoteCacheProducer leaks thread
> ------------------------------------
>
> Key: ISPN-9935
> URL: https://issues.jboss.org/browse/ISPN-9935
> Project: Infinispan
> Issue Type: Bug
> Components: CDI
> Affects Versions: 10.0.0.Alpha3, 9.4.6.Final
> Reporter: Dan Berindei
> Priority: Major
> Fix For: 10.0.1.Final
>
>
> {{RemoteCacheProducer}} injects an (optional?) default {{RemoteCacheManager}}, which is created with a custom bean registered by {{InfinispanExtensionRemote.createDefaultRemoteCacheManagerBean()}}.
> In the CDI remote tests, however, the default {{RemoteCacheManager}} is not used, so it's not created. Instead, Weld creates a proxy {{RemoteCacheManager}}, and since {{RemoteCacheManager}} is a class, its default constructor is invoked, connecting to the server and starting the async thread pool. But since it's not a proper bean, only a proxy, Weld never invokes {{stop()}} and leaks the thread.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the infinispan-issues
mailing list