[infinispan-issues] [JBoss JIRA] (ISPN-7606) DistributedExecutorMassIndexer.executeInternal should use an existing pool

Dan Berindei (JIRA) issues at jboss.org
Mon Mar 13 13:52:00 EDT 2017


Dan Berindei created ISPN-7606:
----------------------------------

             Summary: DistributedExecutorMassIndexer.executeInternal should use an existing pool
                 Key: ISPN-7606
                 URL: https://issues.jboss.org/browse/ISPN-7606
             Project: Infinispan
          Issue Type: Bug
          Components: Embedded Querying
    Affects Versions: 9.0.0.CR2
            Reporter: Dan Berindei
            Assignee: Gustavo Fernandes
             Fix For: 9.0.0.Final


{{DistributedExecutorMassIndexer.executeInternal}} creates 2 executors:

1. {{new DefaultExecutorService(cache)}} implicitly creates a single-threaded executor to run tasks on the local node.
2. {{compositeFuture.whenCompleteAsync(consumer, Executors.newSingleThreadExecutor())}} explicitly creates a new single-threaded executor to run the consumer on.

Neither of these executors are shut down, and rather than complicating the code to stop them properly it would be better to use an existing executor.





--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the infinispan-issues mailing list