Skip to content

Remove unnecessary route.reload after updating destinations#4945

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

Remove unnecessary route.reload after updating destinations#4945
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-route-destinations-reload-race-condition

Conversation

@philippthun
Copy link
Member

The reload and return value were unused by all callers. Removing them fixes a race condition where concurrent route deletion caused 500 errors.

Observed error:

Record not found (Sequel::NoExistingObject) at
update_route_destinations.rb:97 in 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

The reload and return value were unused by all callers. Removing them
fixes a race condition where concurrent route deletion caused 500 errors.

Observed error:
Record not found (Sequel::NoExistingObject) at
update_route_destinations.rb:97 in reload
@philippthun philippthun marked this pull request as draft March 20, 2026 12:31
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.

1 participant