fix: release reconcile modified resource error#470
Draft
0x0013 wants to merge 35 commits into
Draft
Conversation
Co-authored-by: Isaac James <isaac.james@hotmail.co.uk>
Co-authored-by: isaacjames <isaac.james@gocardless.com>
Co-authored-by: Emil Lozev <elozev@gocardless.com>
Co-authored-by: isaacjames <isaac.james@gocardless.com>
0x0013
marked this pull request as draft
February 23, 2026 10:28
0x0013
force-pushed
the
pre-release-5.1.0
branch
2 times, most recently
from
March 16, 2026 15:13
2943c84 to
aa678e5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Start With Why
For our
Releasereconciliation loop, we are observing intermittent errors such as:Though these errors self-resolve within the next 1-2 loops, it's obviously not ideal to have them.
Rationale
With some assistance from LLM, we have a proposed cause and a potential fix.
Cause
Potential fix
Considerations
This PR is primarily meant to test whether the solution works. I'm not entirely convinced about the fix as-is, because it modifies the
CreateOrUpdatelogic and takes a different approach forUpdateandStatusUpdate.Furthermore, the approach makes the behavior of the generic
DiffFuncpartially redundant - the function modifies theexistingcopy of the state, with the intention that it will be sent to update, however in the case ofStatusUpdateresult, we ignore the updatedexistingobject.If the fix works, we should consider options to better integrate it into the generic functionality of
CreateOrUpdateResults
After preliminary test, I don't see any of the previous "the object has been modified" errors.