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
AbstractItemCountingItemStreamItemReader should store the read count as a long [BATCH-2547] #1055
Comments
Hi @benas, Thank you. |
@parikshitdutta Great! Thank you for letting me know about that. I did not evaluate the impact of this change request yet, but the changes here might overlap with those required for #3650, for which I opened a draft PR (see #3845). If this is the case, please make sure to take into account those changes to avoid duplicate efforts. Otherwise, there would be no issue, we would have two independent PRs. |
Apparently updating read counters to Line 33 in a6f283b
And, Line 47 in a6f283b
and all its derivatives such as On the other hand, these changes not going to help Line 495 in a6f283b
Because, Line 142 in a6f283b
I just mentioned some of the refactoring, while there are much more than what meets the eye, I believe we should handle it in different way than just refactoring int to long. Your thought @benas? |
@parikshitdutta Thank you for your feedback. I came to the same conclusions. The impact of this change is huge. Moreover, in order to implement this correctly (ie without data loss during type conversion), this would require a change in The So while this issue is theoretically valid, I believe it is still rare in practice (that's probably one of the reasons why For all these reasons (impediments + frequency of the case), I believe the requested change is not worth the added value. I would be grateful to anyone who faces this issue to upvote it and add a comment in order to measure how often this happens in practice. |
Alexis NICOLAS opened BATCH-2547 and commented
Right now the AbstractItemCountingItemStreamItemReader use a int to store the read count which means any implementation of this can't read more than Integer.MAX_VALUE items. Using a long would allow to read a lot more elements, this can be useful for processes dealing with huge amount of data.
Affects: 3.0.7
The text was updated successfully, but these errors were encountered: