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

Simplify Diesel Error management #4210

Merged
merged 6 commits into from
Oct 12, 2023
Merged

Simplify Diesel Error management #4210

merged 6 commits into from
Oct 12, 2023

Conversation

smklein
Copy link
Collaborator

@smklein smklein commented Oct 5, 2023

Depends on oxidecomputer/async-bb8-diesel#54

As of #4140 , we check out connections before issuing queries to the underlying database. This means that when we receive errors from the database, they are not overloaded as "connection checkout" OR "database" errors - they are now always database errors.

@smklein smklein requested review from jmpesp and sunshowers October 5, 2023 02:37
Cargo.toml Outdated Show resolved Hide resolved
Copy link
Contributor

@sunshowers sunshowers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

nexus/db-queries/src/db/datastore/snapshot.rs Outdated Show resolved Hide resolved
nexus/db-queries/src/db/true_or_cast_error.rs Outdated Show resolved Hide resolved
nexus/db-queries/src/db/queries/network_interface.rs Outdated Show resolved Hide resolved
nexus/db-queries/src/db/datastore/snapshot.rs Outdated Show resolved Hide resolved
nexus/db-queries/src/db/datastore/silo.rs Show resolved Hide resolved
nexus/db-queries/src/db/queries/network_interface.rs Outdated Show resolved Hide resolved
nexus/db-queries/src/db/true_or_cast_error.rs Outdated Show resolved Hide resolved
@smklein smklein enabled auto-merge (squash) October 11, 2023 19:56
@smklein smklein merged commit a903d61 into main Oct 12, 2023
23 checks passed
@smklein smklein deleted the simplify-asyncbb8-errors branch October 12, 2023 01: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.

3 participants