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

[FINERACT-1678] Cob job skeleton #2491

Merged
merged 1 commit into from Aug 17, 2022
Merged

Conversation

taskain7
Copy link
Contributor

@taskain7 taskain7 commented Aug 8, 2022

Description

This is a skeleton for the remote partitioned Loan COB Spring Batch job.

@taskain7 taskain7 force-pushed the cob-job-skeleton branch 6 times, most recently from ec1faa0 to 3fe023d Compare August 8, 2022 09:31
@vidakovic vidakovic self-requested a review August 8, 2022 09:46
@taskain7 taskain7 force-pushed the cob-job-skeleton branch 2 times, most recently from 408206e to f2c879d Compare August 9, 2022 07:33
@taskain7 taskain7 marked this pull request as ready for review August 9, 2022 07:33
Copy link
Contributor

@vidakovic vidakovic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taskain7 taskain7 force-pushed the cob-job-skeleton branch 4 times, most recently from f83acdc to 6def2cb Compare August 9, 2022 11:11
@adamsaghy
Copy link
Contributor

@taskain7 Would you check why the jobs are timing out?

@taskain7
Copy link
Contributor Author

taskain7 commented Aug 9, 2022

@taskain7 Would you check why the jobs are timing out?

I'm on it

@taskain7 taskain7 force-pushed the cob-job-skeleton branch 8 times, most recently from fb85cb8 to b465684 Compare August 16, 2022 09:37
List<Integer> remainingData = new ArrayList<>(data);
return () -> {
if (remainingData.size() > 0) {
return loanRepository.findById(remainingData.remove(0).longValue()).orElse(null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be an overkill to issue a single statement for every single ID, don't you think?
We shall rather grab a chunk size of Loans at once.

@galovics galovics merged commit 8a1f134 into apache:develop Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants