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

Assertion failure after restarting database. #107

Closed
ileitch opened this issue Jun 4, 2020 · 0 comments · Fixed by #110
Closed

Assertion failure after restarting database. #107

ileitch opened this issue Jun 4, 2020 · 0 comments · Fixed by #110
Labels
bug Something isn't working

Comments

@ileitch
Copy link

ileitch commented Jun 4, 2020

Reproduction:

  1. Start postgres (I'm using docker for this)
  2. Run serve and make a request to an endpoint that performs a query
  3. Stop postgres
  4. Perform the request again, and observe the logged error:
    [ ERROR ] connection reset (error set): Connection refused (errno: 61)
  5. Start postgres again
  6. Perform the request again, this time the process exists with: Assertion failed: PostgresConnection deinitialized before being closed.: file /Users/ian/code/streambuddy/.build/checkouts/postgres-nio/Sources/PostgresNIO/Connection/PostgresConnection.swift, line 42

Expected outcome:
serve gracefully handles the restart and makes a new connection to postgres.

Actual outcome:
serve exits.

@tanner0101 tanner0101 added the bug Something isn't working label Jul 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants