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

update async-bb8-diesel for error message update #3233

Merged
merged 3 commits into from
May 26, 2023
Merged

Conversation

davepacheco
Copy link
Collaborator

See oxidecomputer/async-bb8-diesel#43.

After this change and #3232, when I start up Nexus without Cockroach running, I see this log message:

[2023-05-25T20:18:38.178755567-07:00] ERROR: e6bff1ff-24fb-49dc-a54e-c6a350cd4d6c/ServerContext/2542 on ivanova: database connection error
    database_url: postgresql://[email protected]:32221/omicron?sslmode=disable
    --  
    error_message: Connection error: could not connect to server: Connection refused
        Is the server running on host "127.0.0.1" and accepting
        TCP/IP connections on port 32221?

When I have both Nexus and CockroachDB running and then shut down CockroachDB, I see this:

[2023-05-25T20:21:45.242147357-07:00] ERROR: e6bff1ff-24fb-49dc-a54e-c6a350cd4d6c/ServerContext/2610 on ivanova: database connection error (error_message="Connection error: server is shutting down")
    database_url: postgresql://[email protected]:32221/omicron?sslmode=disable

Before, these said something about failing to checkout a connection, which wasn't true.

Leaving as draft because I need to fix up Cargo.toml before landing it. But this is ready for review.

@davepacheco davepacheco marked this pull request as ready for review May 26, 2023 15:54
@davepacheco davepacheco enabled auto-merge (squash) May 26, 2023 15:55
@davepacheco davepacheco merged commit 9d9c1df into main May 26, 2023
@davepacheco davepacheco deleted the dap/async-bb8-error branch May 26, 2023 18:57
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