Skip to content

Fix race condition in route destination updates#4945

Merged
philippthun merged 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-route-destinations-reload-race-condition
Apr 20, 2026
Merged

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

Conversation

@philippthun
Copy link
Copy Markdown
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
@philippthun philippthun merged commit 21e1605 into cloudfoundry:main Apr 20, 2026
21 of 23 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Apr 20, 2026
Changes in cloud_controller_ng:

- Fix sporadic test failure in service broker deletion during creation
    PR: cloudfoundry/cloud_controller_ng#5045
    Author: Philipp Thun <philipp.thun@sap.com>

- Fix race condition in route destination updates
    PR: cloudfoundry/cloud_controller_ng#4945
    Author: Philipp Thun <philipp.thun@sap.com>
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.

2 participants