Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9935

CDI RemoteCacheProducer leaks thread

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • 9.4.6.Final, 10.0.0.Final
    • CDI
    • None

      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.

              Unassigned Unassigned
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: