looping in Spring batch -


i have simple configuration in spring batch first step:

<batch:job id="collaborationjob" >     <batch:step id="collaborationjobstep1">         <batch:tasklet>             <batch:chunk reader="collaborationalertreader" processor="writecollaborationpruningprocessor" writer="alertcollaborationpruningwriter"                 commit-interval="10">             </batch:chunk>         </batch:tasklet>         <batch:next on="*" to="collaborationjobstep2" />         <batch:next on="failed" to="collaborationjobstep4"/>     </batch:step> 

if read number of rows < 10 in itemreader fine, if number of rows >= 10 enter in repeation loop:

2015-09-29 17:02:40,782 debug [org.springframework.batch.core.step.tasklet.taskletstep] - <saving step execution before commit: stepexecution: id=1332, version=878, name=collaborationjobstep1, status=started, exitstatus=executing, readcount=8780, filtercount=0, writecount=8780 readskipcount=0, writeskipcount=0, processskipcount=0, commitcount=878, rollbackcount=0, exitdescription=>  2015-09-29 17:02:40,786 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=879>  2015-09-29 17:02:40,786 debug [org.springframework.batch.core.scope.context.stepcontextrepeatcallback] - <preparing chunk execution stepcontext: org.springframework.batch.core.scope.context.stepcontext@664020c7>  2015-09-29 17:02:40,786 debug [org.springframework.batch.core.scope.context.stepcontextrepeatcallback] - <chunk execution starting: queue size=0>  2015-09-29 17:02:40,787 debug [org.springframework.batch.repeat.support.repeattemplate] - <starting repeat context.>  2015-09-29 17:02:40,787 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=1>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=2>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=3>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=4>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=5>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=6>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=7>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=8>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=9>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat operation start @ count=10>  2015-09-29 17:02:40,791 debug [org.springframework.batch.repeat.support.repeattemplate] - <repeat complete according policy , result value.>  2015-09-29 17:02:40,793 debug [org.springframework.batch.core.step.item.chunkorientedtasklet] - <inputs not busy, ended: false>  2015-09-29 17:02:40,793 debug [org.springframework.batch.core.step.tasklet.taskletstep] - <applying contribution: [stepcontribution: read=10, written=10, filtered=0, readskips=0, writeskips=0, processskips=0, exitstatus=executing]> 

what's wrong configuration? in advance giorgio


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -