Project: springxd
Issue XD-2229: When using --deletefile option for filejdbc all files are deleted before processing complete
In this scenario I copied 2 files (fakeFile.csv, anotherFile.csv) into the bar directory. * Created thew following job: job create myjob2 --definition "filejdbc --resources=file:bar/*.csv --names=name --tableName=people2 --initializeDatabase=true --commitInterval=1 --deleteFiles=true" --deploy * Then launched the job: job launch myjob2 * The result was that the first file was processed, but then the module deleted all *.csv files in the directory before processing the 2nd file. * The net result was that the job failed and the 2nd file was not processed.
Story points: 3