Skip to content

FINERACT-2602: Remove stuck loans from loan lock table after COB execution#5853

Closed
AshharAhmadKhan wants to merge 1 commit into
apache:developfrom
AshharAhmadKhan:FINERACT-2602-unlock-processed-loans-after-cob
Closed

FINERACT-2602: Remove stuck loans from loan lock table after COB execution#5853
AshharAhmadKhan wants to merge 1 commit into
apache:developfrom
AshharAhmadKhan:FINERACT-2602-unlock-processed-loans-after-cob

Conversation

@AshharAhmadKhan
Copy link
Copy Markdown
Contributor

Fixes an issue where loan accounts remain stuck in m_loan_account_locks after COB completes successfully.

Adds UnlockProcessedLoansTasklet as the final step in the COB job. It removes orphaned locks where the loan was fully processed (error is null and lock_placed_on_cob_business_date matches the current COB date).

Also adds a Cucumber unit test for the new tasklet.

Resolves: https://issues.apache.org/jira/browse/FINERACT-2602

@AshharAhmadKhan
Copy link
Copy Markdown
Contributor Author

Hey @adamsaghy Please trigger checks when you get a chance, thanks.

@AshharAhmadKhan AshharAhmadKhan force-pushed the FINERACT-2602-unlock-processed-loans-after-cob branch from 83348f2 to 2ad4eb9 Compare May 17, 2026 10:41
@AshharAhmadKhan
Copy link
Copy Markdown
Contributor Author

@adamsaghy Hey, Can you please retrigger failing checks. Both were flaky.

@AshharAhmadKhan
Copy link
Copy Markdown
Contributor Author

Hi @adamsaghy , just following up on this PR. Would appreciate a review when you get a chance, Thanks!

@adamsaghy
Copy link
Copy Markdown
Contributor

@AshharAhmadKhan I believe you have got a contender: #5858 with a more thorough approach and testing.

@adamsaghy adamsaghy marked this pull request as draft May 19, 2026 13:21
@AshharAhmadKhan
Copy link
Copy Markdown
Contributor Author

Thanks @adamsaghy.

I took a closer look at #5858, and I agree it’s a better approach than mine for handling this issue. I’ll close this PR to avoid duplicate effort.

Glad I got to work on this and understand this part of the COB flow better. I’ll also drop my thoughts/review on #5858 where I think I can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants