spring-projects / spring-batch

Spring Batch is a framework for writing batch applications using Java and Spring
http://projects.spring.io/spring-batch/
Apache License 2.0
2.69k stars 2.33k forks source link

FileItemReader should close the underlying reader before the step listener [BATCH-2098] #1500

Open spring-projects-issues opened 11 years ago

spring-projects-issues commented 11 years ago

Simon Wong opened BATCH-2098 and commented

In a typical scenario, we will add a step listener that will rename the input file depends on whether the step's Exit Status is completed or failed.

If the reader is closed after the listener, the input file is currently opening and the listener could not rename the file.


Affects: 2.2.1

Issue Links:

cppwfs commented 1 year ago

Thank you for opening the issue. Can you retry with the latest release of Spring Batch(5.0.2) and report back the results?
If the issue is reproduceable, can you provide a sample project that uses the latest release of Spring Batch and that exhibits the behavior? To help you in reporting your issue, we have prepared a project template that you can use as a starting point. Please check the Issue Reporting Guidelines for more details about this.