Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use truncation with threads #4146

Merged
merged 1 commit into from
Dec 19, 2024
Merged

Use truncation with threads #4146

merged 1 commit into from
Dec 19, 2024

Conversation

sethboyles
Copy link
Member

@sethboyles sethboyles commented Dec 18, 2024

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • 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

…ation

* Also prefix shared_examples and other RSpec methods so they don't error when using `--bisect`
@sethboyles
Copy link
Member Author

sethboyles commented Dec 18, 2024

This line was being called in a Thread: https://github.com/cloudfoundry/cloud_controller_ng/pull/4146/files#diff-c8afec9552f47802a0465905c8dc7d02f2563108b761bf16174aa353e5e84911L8

Where the instance wouldn't be cleaned up since it was outside of the transaction. The truncate cleanup method will properly restore the state of the DB

@philippthun philippthun merged commit 0d37cbe into main Dec 19, 2024
8 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Dec 19, 2024
Changes in cloud_controller_ng:

- Ensure specs that create models in threads are rolled back with truncation
    PR: cloudfoundry/cloud_controller_ng#4146
    Author: Seth Boyles <[email protected]>
@moleske moleske deleted the use_truncation_with_threads branch December 19, 2024 17:11
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