Skip to content

Fix race condition in route destination updates#4945

Open
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-route-destinations-reload-race-condition
Open

Fix race condition in route destination updates#4945
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-route-destinations-reload-race-condition

Conversation

@philippthun
Copy link
Member

@philippthun philippthun commented Mar 20, 2026

Move route.reload inside the transaction block to ensure the returned route reflects a consistent state. Previously, a concurrent request could modify or delete the route between transaction commit and reload.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

@philippthun philippthun marked this pull request as draft March 20, 2026 12:31
Move route.reload inside the transaction block to ensure the returned
route reflects a consistent state. Previously, a concurrent request
could modify or delete the route between transaction commit and reload.
@philippthun philippthun force-pushed the fix-route-destinations-reload-race-condition branch from 83cc761 to 70d1ce4 Compare March 24, 2026 11:36
@philippthun philippthun changed the title Remove unnecessary route.reload after updating destinations Fix race condition in route destination updates Mar 24, 2026
@philippthun philippthun marked this pull request as ready for review March 24, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant