title: Partitioning in spring batch not running in parallel
body: <p>I have configured  a spring batch tasklet to validate a xml file which is of size 3 gb.With just tasklet it is taking one minute to validate one xml file.Now i have configured local partitioning to validate two xml files in parallel</p>
  
  <pre><code>   &lt;batch:job id="ValidationJob" incrementer="runIdIncrementer"&gt;
          &lt;batch:step id="validationMaster" allow-start-if-complete="false"&gt;
                  &lt;batch:partition step="validationSlave"partitioner="filePartioner"&gt;
                      &lt;batch:handler task-executor="taskExecutor" /&gt;
                  &lt;/batch:partition&gt;
              &lt;/batch:step&gt;
      &lt;/batch:job&gt;
  
  &lt;batch:step id="validationSlave"&gt;
          &lt;batch:tasklet ref="XMLValidation"&gt;
          &lt;/batch:tasklet&gt;
      &lt;/batch:step&gt;
  
      &lt;bean id="taskExecutor" class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"&gt;
              &lt;property name="corePoolSize" value="2" /&gt;
              &lt;property name="maxPoolSize" value="10" /&gt;
              &lt;property name="allowCoreThreadTimeOut" value="false" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>My partitioner is simple it just create partitions to create partition for number of files in a directory.When i try to run two xml files in parallel it is taking more than 5minutes.Which ideally should be done in less than 2minutes.Where am i doing wrong</p>