[54398] Increase delay between 686c and 674 form submissions. #11998
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Increase delay between 686c and 674 form submissions
Long ago, in #7811, a two-minute delay was set between BGS::SubmitForm686cJob and BGS::SubmitForm674Job, in an attempt to avoid a race condition that produced null dependency claims. The race condition is still occuring, so as a short-term fix, this PR increases the delay to five minutes. Here's some more detail on that issue, and the short-term fix implemented here:
incremental
from BGS via afindBenefitClaimTypeIncrement
endpoint, and then submit thisincremental
along with the vet's form data to BGS via ainsertBenefitClaim
endpoint. Theincremental
is akin to an incrementing ID or serial number. It starts at "130" for each veteran, and every time a veteran makes a successful request to theinsertBenefitClaim
endpoint, theincrement
increases by 1. So the next time a veteran consumes thefindBenefitClaimTypeIncrement
endpoint, they will get anincremental
of "131."insertBenefitClaim
endpoint to have a uniqueincremental
. In other words, a veteran cannot make two requests toinsertBenefitClaim
with the sameincremental
. If they do, a null dependency claim is generated and a "Duplicate Benefit Claims found on the Corporate Database" error is thrown. This is why VA.gov's 686c and 674 submission jobs are both written to fetch the nextincremental
from thefindBenefitClaimTypeIncrement
before consuming theinsertBenefitClaim
endpoint.incremental
before it has been updated by 686c's submission request. Consequently, both submission requests use the sameincremental
, and the latter request fails, thereby producing a null claim.I work for the benefits decision reviews team. This work has been live on VA.gov for awhile. I've only recently come onboard to resolve the issue described in this PR.
Related issue(s)
Testing done
Screenshots
Note: Optional
What areas of the site does it impact?
686c form.
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?