Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RepositoryItemReader reads the first page twice when used with partitions. [BATCH-2141] #1454

Closed
spring-issuemaster opened this issue Nov 16, 2013 · 1 comment

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Nov 16, 2013

Gary Crawford opened BATCH-2141 and commented

org.springframework.batch.item.data.RepositoryItemReader.jumpToItem() is called for each partition and initiates the processing of the first page by calling results = doPageRead(); but doesn't increment the page attribute which means that page 0 is processed twice. The fix is simply to have page++ after the call to doPageRead();


Affects: 3.0.0, 2.2.2

Reference URL: #244

@spring-issuemaster

This comment has been minimized.

Copy link
Collaborator Author

@spring-issuemaster spring-issuemaster commented Nov 18, 2013

Gary Crawford commented

Thanks Michael.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.