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

The schema cache load is not retried with exponential backoff #3523

Open
steve-chavez opened this issue May 15, 2024 · 1 comment · May be fixed by #3545
Open

The schema cache load is not retried with exponential backoff #3523

steve-chavez opened this issue May 15, 2024 · 1 comment · May be fixed by #3545
Labels

Comments

@steve-chavez
Copy link
Member

Problem

Adding the following on test/spec/fixtures/schema.sql:

alter role postgrest_test_authenticator set statement_timeout to '10'

Makes the schema cache retry load on an endless loop without backoff:

# $ postgrest-with-postgresql-16 -f test/spec/fixtures/load.sql postgrest-run 
# ...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...
08/May/2024:21:06:46 +0200: Attempting to connect to the database...

Previously reported on #3424 (comment)

@steve-chavez
Copy link
Member Author

Still an issue, this was incorrectly closed by #3536

@steve-chavez steve-chavez reopened this May 20, 2024
@steve-chavez steve-chavez linked a pull request May 21, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

1 participant