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

feature: apply enhanced postgres cnx mgmt to registry and scheduler modules #2103

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented May 3, 2024

Improve PostgreSQL connection management.
Replace execute_with_retry to execute_with_txn_retry in registry and scheduler module.

Notice

Some of the code that retries DB calls through the execute_with_retry() API has been modified to prevent further retries because the DB calls will not be retried as intended.

  • get_*_occupancy() APIs do not retry DB calls anymore because execute_with_retry() retries only when SerializationError occurs, which requires retry the entire transaction, not rolling back to CHECKPOINT.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • API server-client counterparts (e.g., manager API -> client SDK)

Copy link

graphite-app bot commented May 3, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

Copy link
Member Author

fregataa commented May 3, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @fregataa and the rest of your teammates on Graphite Graphite

@fregataa fregataa added this to the 24.09 milestone May 3, 2024
@fregataa fregataa force-pushed the topic/feature/improve-psql-cnx-mgmt branch from 0cf662b to a9af7e1 Compare May 8, 2024 09:18
@fregataa fregataa force-pushed the topic/05-03-feature_apply_enhanced_postgres_cnx_mgmt_to_registry_and_scheduler_modules branch from e78789e to b4b91d6 Compare May 8, 2024 09:19
@fregataa fregataa force-pushed the topic/feature/improve-psql-cnx-mgmt branch from a9af7e1 to 77538a3 Compare June 7, 2024 08:20
@fregataa fregataa force-pushed the topic/05-03-feature_apply_enhanced_postgres_cnx_mgmt_to_registry_and_scheduler_modules branch from b4b91d6 to 3a04459 Compare June 7, 2024 08:20
@fregataa fregataa force-pushed the topic/feature/improve-psql-cnx-mgmt branch from 77538a3 to f38b0e5 Compare June 11, 2024 09:29
@fregataa fregataa force-pushed the topic/05-03-feature_apply_enhanced_postgres_cnx_mgmt_to_registry_and_scheduler_modules branch from 3a04459 to c32d461 Compare June 11, 2024 09:30
@fregataa fregataa force-pushed the topic/feature/improve-psql-cnx-mgmt branch from f38b0e5 to c81529f Compare June 11, 2024 09:55
@fregataa fregataa force-pushed the topic/05-03-feature_apply_enhanced_postgres_cnx_mgmt_to_registry_and_scheduler_modules branch from c32d461 to f80e1d4 Compare June 11, 2024 09:56
@achimnol achimnol force-pushed the topic/feature/improve-psql-cnx-mgmt branch from 2022abc to 5cfd9df Compare June 12, 2024 04:42
@achimnol achimnol changed the base branch from topic/feature/improve-psql-cnx-mgmt to main June 12, 2024 04:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:XL 500~ LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant