Dec 18th, 2012, 03:13 AM
restarting the failed job
My job is to read from a flatfile,process it and write it to three output file.
Here in this scenario where i am throwing the business exception while processing the particular record.
obviously the job gets failed and again i am rerunning the job with same job parameters without throwing any exception.
There is no issue in restarting the job.The job execution is completed successfully.but the problem is expected output. In output file it is overwriting the previous record.
The commit interval that i have set is 1.
The job gets failed at the record say for example 10th record.
After job:Get the Step Execution [StepExecution: id=484, version=14, name=step3, status=FAILED, exitStatus=FAILED, readCount=12, filterCount=0, writeCount=11 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=12, rollbackCount=1, exitDescription=java.lang.Exception: shruthi test exception: found Exception
when i rerun it with same job parameter
The output is
After job:Get the Step Execution [StepExecution: id=485, version=21, name=step3, status=COMPLETED, exitStatus=COMPLETED, readCount=14, filterCount=0, writeCount=14 readSkipCount=0, writeSkipCount=0, processSkipCount=0, commitCount=19, rollbackCount=0, exitDescription=]
In output file the records has been overwritten i need find the solution
K07712,MK07713,NRONOS INCORPORATED //here is the record overwritten on other