-
Dec 18th, 2012, 03:13 AM
#1
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.
The output:
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
K07701,ARONOS INCORPORATED
K07702,BRONOS INCORPORATED
K07703,CRONOS INCORPORATED
K07704,DRONOS INCORPORATED
K07705,ERONOS INCORPORATED
K07706,FRONOS INCORPORATED
K07707,HRONOS INCORPORATED
K07708,IRONOS INCORPORATED
K07709,JRONOS INCORPORATED
K07711,LRONOS INCORPORATED
K07712,MK07713,NRONOS INCORPORATED //here is the record overwritten on other
K07714,ORONOS INCORPORATED
K07715,PRONOS INCORPORATED
K07716,QRONOS INCORPORATED
K07717,RRONOS INCORPORATED
K07718,SRONOS INCORPORATED
K07719,TRONOS INCORPORATED
K07720,URONOS INCORPORATED
K07721,VRONOS INCORPORATED
K07722,WRONOS INCORPORATED
K07723,XRONOS INCORPORATED
K07724,YRONOS INCORPORATED
K07725,ZRONOS INCORPORATED
K07726,VRONOS INCORPORATED
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules