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

Introduce timeout safeguard for migration sql queries #3633

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

FloThinksPi
Copy link
Member

@FloThinksPi FloThinksPi commented Feb 8, 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

spec/migrations/Readme.md Outdated Show resolved Hide resolved
spec/migrations/Readme.md Outdated Show resolved Hide resolved
lib/cloud_controller/db_migrator.rb Outdated Show resolved Hide resolved
@FloThinksPi FloThinksPi marked this pull request as ready for review February 20, 2024 14:16
@FloThinksPi FloThinksPi force-pushed the document-migration-issues branch 2 times, most recently from 4b04796 to 0a217c2 Compare February 20, 2024 14:24
FloThinksPi added a commit to cloudfoundry/capi-release that referenced this pull request Feb 21, 2024
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
FloThinksPi added a commit to cloudfoundry/capi-release that referenced this pull request Feb 21, 2024
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
FloThinksPi added a commit to cloudfoundry/capi-release that referenced this pull request Feb 21, 2024
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
@FloThinksPi FloThinksPi force-pushed the document-migration-issues branch from 6df6989 to b7a9b57 Compare February 21, 2024 13:42
FloThinksPi added a commit to cloudfoundry/capi-release that referenced this pull request Feb 28, 2024
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
The mysql statement timeout just works for selects. Additionally
mysql does not support transactional rollbacks of DDL statements.
Thus there is a risk to exit in an unclean state which might cause
CC runtime errors and addtionally the timeout on selects only is not
worth much functionally.

Add max_migration_statement_runtime_in_seconds into default config

For consitency since other optional parameters are also
defined there explicitly.
@philippthun philippthun force-pushed the document-migration-issues branch from d601835 to 84fcd44 Compare March 12, 2024 14:01
@philippthun philippthun merged commit 18a2fda into main Apr 9, 2024
8 checks passed
philippthun pushed a commit to cloudfoundry/capi-release that referenced this pull request Apr 9, 2024
This change enables operators to configure
the new config property `max_migration_statement_runtime_in_seconds`
see cloudfoundry/cloud_controller_ng#3633.
@moleske moleske deleted the document-migration-issues branch April 10, 2024 02:50
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