Skip to content

Conversation

@jochenehret
Copy link
Contributor

@jochenehret jochenehret commented Dec 17, 2025

  • A short explanation of the proposed change:
    Current shutdown function produces "error: can't be called from trap". Deferring the shutdown to an at_exit hook so that it runs after the trap handler avoids the error. Tested manually with bosh stop api / bosh start api (error was logged in cloud_controller.log file).

  • An explanation of the use cases your change solves
    Enable clean shutdown of PeriodicUpdater when Puma shuts down

  • Links to any other associated PRs

  • 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

* current implementation produces "error: can't be called from trap"
@jochenehret jochenehret force-pushed the fix_periodic_updater_shutdown branch from cad5e79 to ddb5f75 Compare December 17, 2025 15:30
@jochenehret jochenehret marked this pull request as ready for review December 17, 2025 15:56
@jochenehret jochenehret requested review from a team December 18, 2025 07:11
* avoids use of sleep commands
@jochenehret jochenehret merged commit 8e838ff into main Dec 19, 2025
11 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Dec 19, 2025
Changes in cloud_controller_ng:

- Fix shutdown of periodic_updater
    PR: cloudfoundry/cloud_controller_ng#4711
    Author: Jochen Ehret <jochen.ehret@sap.com>

Dependency updates in cloud_controller_ng:

- build(deps): bump sequel_pg from 1.18.1 to 1.18.2
    PR: cloudfoundry/cloud_controller_ng#4716
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

- build(deps-dev): bump webrick from 1.9.1 to 1.9.2
    PR: cloudfoundry/cloud_controller_ng#4715
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@moleske moleske deleted the fix_periodic_updater_shutdown branch December 19, 2025 17:09
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.

2 participants