title: Spring batch - Disappearing threads While using Partioner
body: <p>I am using Spring batch to process voluminous data daily. So we are ready to go with Spring batch Partioning concept.</p>
  
  <p>Below is my configuration :`</p>
  
  <pre><code>    &lt;job id="test" xmlns="http://www.springframework.org/schema/batch"&gt;
      &lt;step id="masterStep"&gt;
        &lt;partition step="step2" partitioner="multiPartioner"&gt;
          &lt;handler grid-size="3" task-executor="taskExecutor" /&gt;
        &lt;/partition&gt;
      &lt;/step&gt;
    &lt;/job&gt;
  
    &lt;bean id="multiPartioner"
      class="org.springframework.batch.core.partition.support.MultiResourcePartitioner"
      scope="step"&gt;
      &lt;property name="resources" value="file:#{jobParameters[fileDirectory]}/*" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="taskExecutor"
      class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"&gt;
      &lt;property name="corePoolSize" value="10" /&gt;
      &lt;property name="maxPoolSize" value="10" /&gt;
    &lt;/bean&gt;
  
      &lt;step id="step2" xmlns="http://www.springframework.org/schema/batch"&gt;
        &lt;tasklet transaction-manager="transactionManager"&gt;
          &lt;chunk reader="multiResourceItemReader" writer="testWriter"
            commit-interval="20000"&gt;
          &lt;/chunk&gt;
        &lt;/tasklet&gt;
      &lt;/step&gt;
  </code></pre>
  
  <p>When I try to specify the corePoolSize as 4 , it is working fine without any issues. But if I increase the count of corePoolSize to 10 , it is executing but after some time say 20 mins nothing was executed . No Logs or no error . No status about what is happening . It was idle no execution further.</p>
  
  <p>Please help me to resolve this issue.</p>